in reply to Re: Re: lib
in thread lib
If you're running it as a CGI you don't necessarily know what the current directory is. Try doing a print `pwd`; to see where the script actually is.
Usually, with things like file paths, it can be useful to make a configuration variable that holds this stuff in, so when you open you do something more like open (INPUTFILE, "<$root/postcode.txt");. $root can be a variable set at the top of the file, read in from a configuration file, etc.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: lib
by davorg (Chancellor) on Apr 11, 2001 at 16:10 UTC | |
by arhuman (Vicar) on Apr 11, 2001 at 16:12 UTC | |
by davorg (Chancellor) on Apr 11, 2001 at 16:38 UTC | |
by merlyn (Sage) on Apr 11, 2001 at 19:06 UTC | |
by arhuman (Vicar) on Apr 11, 2001 at 19:40 UTC |