I have a per script in ~/bin/ that I'm calling from another directory. I tried using `getcwd()` to get the current working directory where the script was called from but it is returning undefined. How can I get the directory the script's command is getting issued from?
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
In reply to Determining directory where script was called from by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |