Module file writing problem



Hi,

I've writting a module to store the functions I use through my website.
One of the functions needs to access a text file,
cgi-bin/user/file.dat. The function only works when the script using it
is in cgi-bin/user/. At first the line looked like "open (FILE,
'file.dat');" but then I changed it to "open (FILE,
'/user/file.dat');". It still works fine when the script is in
cgi-bin/user/, but not when it's anywhere else. What am I doing wrong?

.



Relevant Pages

  • Re: Module file writing problem
    ... I've writting a module to store the functions I use through my website. ... One of the functions needs to access a text file, ... The function only works when the script using it ...
    (comp.lang.perl.misc)
  • Re: Website for finding out what my books are worth
    ... for a website that would let me input title, author, and other ... as much as they;re worth. ... hand-helds which are downloading supposed "book ... value of an expensive art book in the store. ...
    (rec.collecting.books)
  • Re: Leaking G5s: a fair solution
    ... while the other has no evidence of any kind and has changed its story ... You say that 'bozo' did not speak to anyone at the store. ... I entered 'zara west palm ... That chain has a www.zara.com website. ...
    (comp.sys.mac.system)
  • Re: Leaking G5s: a fair solution
    ... while the other has no evidence of any kind and has changed its story ... You say that 'bozo' did not speak to anyone at the store. ... I entered 'zara west palm ... That chain has a www.zara.com website. ...
    (comp.sys.mac.system)
  • new balsa airplane builders site
    ... I moved my balsa airplane building articles to their own website. ... Sorry for the shameless self promotion, but I'm also setting up a store to unload the mountain of screws and other hardware I have left over from my buyout of the late Tom Runge's RC collection several years ago. ... I need to make sure I'm doing it right before I try it on my Jensen speaker website. ...
    (rec.models.rc.air)