aboutsummaryrefslogtreecommitdiff
path: root/perl/perl-File-pushd/README
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-09-28 06:27:29 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-01 07:17:10 +0700
commit0be19e96f57f15afda220d1050f3e7b6dc21b9fc (patch)
treec15915ca34ae02611fe48756930fba930aac0dbf /perl/perl-File-pushd/README
parent75b9795b621a7d1923fde1501f7e5afe465db30d (diff)
perl/perl-File-pushd: Added (change directory temporarily).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'perl/perl-File-pushd/README')
-rw-r--r--perl/perl-File-pushd/README9
1 files changed, 9 insertions, 0 deletions
diff --git a/perl/perl-File-pushd/README b/perl/perl-File-pushd/README
new file mode 100644
index 0000000000000..cc44ee860038c
--- /dev/null
+++ b/perl/perl-File-pushd/README
@@ -0,0 +1,9 @@
+perl-File-pushd (change directory temporarily for a limited scope)
+
+File::pushd does a temporary chdir that is easily and automatically
+reverted, similar to pushd in some Unix command shells. It works by
+creating an object that caches the original working directory. When
+the object is destroyed, the destructor calls chdir to revert to the
+original working directory. By storing the object in a lexical
+variable with a limited scope, this happens automatically at the end
+of the scope.