Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way to do what I mean:
The semantics being:
if ($foo) { local $cwd = ".."; /* current working directory changes */ ... } /* cwd is back to original directory */
The semantics being:
if ($foo) { my $old_cwd = cwd; chdir ".."; ... chdir $old_cwd; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: local scoped cwd
by Abigail (Deacon) on Jun 27, 2001 at 03:02 UTC | |
by tilly (Archbishop) on Jun 27, 2001 at 12:09 UTC | |
Re: local scoped cwd
by bikeNomad (Priest) on Jun 26, 2001 at 23:40 UTC | |
Re (tilly) 1: local scoped cwd
by tilly (Archbishop) on Jun 27, 2001 at 00:11 UTC | |
Re: local scoped cwd
by mugwumpjism (Hermit) on Jun 27, 2001 at 16:50 UTC | |
Re: local scoped cwd
by Anonymous Monk on Jun 28, 2001 at 04:03 UTC | |
by bikeNomad (Priest) on Jun 28, 2001 at 05:31 UTC | |
by Anonymous Monk on Jun 28, 2001 at 07:42 UTC |
Back to
Seekers of Perl Wisdom