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.
In reply to Re: Slightly OT: Perl and CGI - reading a file
by jZed
in thread Slightly OT: Perl and CGI - reading a file
by C_T
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |