Hi hakonhagland,
I use the following in scripts that I write on one system to run on another:
(note that realpath() is just an alias for abs_path())use Cwd qw/ realpath /; my $path = realpath($0);
Hope this helps!
In reply to Re: How to determine absolute path of current Perl file?
by 1nickt
in thread How to determine absolute path of current Perl file?
by hakonhagland
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |