in reply to Slightly OT: Perl and CGI - reading a file
use Cwd; my $current_dir = cwd;
update: and remember that the current working directory of your script is set by your web server and may not be the same as the physical directory your script is located in and also may not allow you to keep regular files in the same directory as your scripts, see your web server apps. But the Cwd will at least tell you what your working directory is.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Slightly OT: Perl and CGI - reading a file
by C_T (Scribe) on Mar 30, 2004 at 23:46 UTC | |
|
Re: Re: Slightly OT: Perl and CGI - reading a file
by C_T (Scribe) on Mar 31, 2004 at 00:09 UTC |