"T.S. Ravi Shankar" wrote: > > Hi all : Hello,
> Could anyone tell me how I could move between the directories ( or > change the present working directory ) with any perl command ?? > > I have tried these system '/bin/cd $HOME'; , chdir '$HOME'; , > exec 'cd $HOME'; > > After I execute the perl code, the PWD still remains unchanged. > > If the above ways are incorrect, please direct me to the correct. $ perl -le' use Cwd; print cwd; chdir q-/etc- or die "chdir /etc: $!"; print cwd; chdir or die "chdir $ENV{HOME}: $!"; print cwd; ' /home/john /etc /home/john perldoc -f chdir John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]