Sys::Pushd - change directory temporarily
use Sys::Pushd; { my $ignore=new Sys::Pushd '../new/dir'; # Cwd is ../new/dir } # After block exit, cwd is restored
Synopsis pretty much says it all. Based conceptually on SelectSaver.
Multiple directories may be given, in which case they will be chdird to in order encountered.
Will break if immediate-destruction of objects ever ceases to be reliable in Perl.
J. Glick jglick@sig.bsh.com.
Sys-Pushd/lib/Sys/Pushd.pm last modified Tue, 09 Sep 1997 17:07:06 -0400 release 0.001. Copyright (c) 1997 Strategic Interactive Group. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Sys::Pushd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sys::Pushd
CPAN shell
perl -MCPAN -e shell install Sys::Pushd
For more information on module installation, please visit the detailed CPAN module installation guide.