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: Official F1 Store - line Bernies pockets!
    ... collection of accessories that can be found on the official F1 website. ... The collection includes cotton caps and t-shirts in a range of colours, ... The store also includes official season DVD and posters. ... "By launching on the internet we are making the collection ...
    (rec.autos.sport.f1)
  • 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)