An easy, somewhat OT question, but I don't know where to look for an answer. I want to write something like:
#/usr/bin/perl `cd somedir`;
And have it act as though I typed it into the shell when I run the script. How does one do this? (And where should I have looked to find the answer?)
ie:
/> perl cd_script.pl /somedir/>
thanks, qq
In reply to shell cd within perl script by qq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |