in reply to shell cd within perl script
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.