It can be done in a somewhat convoluted manner using batch file.
Check perlrun and the - x option.
For an applied example you could look at the code in this node.
In reply to Re: shell cd within perl script
by guha
in thread shell cd within perl script
by qq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |