Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use Cwd; $cur_dir=getcwd(); print "Current Dir -> $cur_dir\n"; system("cd /home/sa/temp"); $new_dir=getcwd(); print "Changed path -> $new_dir\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to change path
by meraxes (Friar) on Oct 25, 2007 at 03:54 UTC | |
Re: How to change path
by eff_i_g (Curate) on Oct 25, 2007 at 03:55 UTC | |
Re: How to change path
by narainhere (Monk) on Oct 25, 2007 at 07:31 UTC | |
by snowhare (Friar) on Oct 25, 2007 at 11:16 UTC |