a more sensible way to change directories
Perl's 'chdir()' has the unfortunate problem of being very, very, very
global. If any part of your program calls 'chdir()' or if any library you
use calls 'chdir()', it changes the current working directory for the
*whole* program.
This sucks.
File::chdir gives you an alternative, '$CWD' and '@CWD'. These two
variables combine all the power of 'chdir()', the File::Spec manpage and
the Cwd manpage.
- Links to openSUSE:Factory / perl-File-chdir
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout home:bmwiedemann:reproducible:distribution:ring1/perl-File-chdir && cd $_
- Create Badge
Refresh
Refresh
Source Files (show unmerged sources)
Filename | Size | Changed |
---|---|---|
File-chdir-0.1011.tar.gz | 0000025127 24.5 KB | |
perl-File-chdir.changes | 0000001567 1.53 KB | |
perl-File-chdir.spec | 0000002140 2.09 KB |
Latest Revision
Bernhard Wiedemann (bmwiedemann)
committed
(revision 2)
Set link revision to 2e4fb8c1c36f09b7a38091aa4f9a3930
Comments 0