Kenton Brede wrote: > > I've been searching the archives and google for an answer. I suspect it > can't be done but thought I'd ask. > > What I'm trying to do is create a tool such as "cdargs", in perl, to > simplify moving between directories on the command line. > > The problem I'm having of course is actually changing the shell's > working directory from the Perl script. Is there anyway I can do this > with Perl?
It is very easy to change the directory from inside a Perl program however as soon as the program exits the changes will be lost. This is true of Perl or C or Bash or anything that runs as a child of the shell. A child process cannot change its parent's environment. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>