in reply to Re: shell cd within perl script
in thread shell cd within perl script

chdir will only have effect within the script and won't affect the shell's pwd at all. Simple example:
perl -e "chdir('/home/username')"