Re: Moving between directories

2003-06-30 Thread Rob Dixon
T.S. Ravi Shankar wrote: > Hi all : > > 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, th

Re: Moving between directories

2003-06-30 Thread John W. Krahn
"T.S. Ravi Shankar" wrote: > > ( I was trying to build PERL equivalents of pushd & popd (Unix utilities > by > using cd inside the perl script ). Hence I was thinking of doing all > "chdir"s > inside the perl script with "system-cd"s ) This question was asked about a year ago: http://groups.go

Re: Moving between directories

2003-06-30 Thread Sudarshan Raghavan
T.S. Ravi Shankar wrote: Mr. Sudharshan, Very thanks for your quick reply ! So do you say that it is not possible through any means to change the directories (since we are moving between the shells) ? You can change the cwd of the current process. But, this change will not be reflected in the

Re: Moving between directories

2003-06-29 Thread T.S. Ravi Shankar
Mr. Sudharshan, Very thanks for your quick reply ! So do you say that it is not possible through any means to change the directories (since we are moving between the shells) ? ( I was trying to build PERL equivalents of pushd & popd (Unix utilities by using cd inside the perl script ). Hence I

Re: Moving between directories

2003-06-29 Thread Sudarshan Raghavan
T.S. Ravi Shankar wrote: Hi all : 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 re

Re: Moving between directories

2003-06-29 Thread John W. Krahn
"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