Who says anything about what the current directory is when your script is executing? Personally, I use FindBin;, and then use "full" pathnames based on $FindBin::Bin everywhere. Then current working directories never matter.
In reply to Re: problems with relative paths when using open and opendir functions
by Tanktalus
in thread problems with relative paths when using open and opendir functions
by Travis M.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |