devel/p5-File-pushd 1.016nb9 NetBSD
Perl module to change directory temporarily for a limited scope
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- Last update
- Commit
618415630a- License
- apache-2.0
- Categories
- devel, perl5
- Package size
- 8.2 KiB, 16.1 KiB installed
Description
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.
In the other systems
| System | Port | Version |
|---|---|---|
| NetBSD | devel/p5-File-pushd | 1.016nb9 |
| FreeBSD | devel/p5-File-pushd | 1.016 |
| OpenBSD | devel/p5-File-pushd | 1.016p0 |
| DragonFly | devel/p5-File-pushd | 1.016 |
| MidnightBSD | devel/p5-File-pushd | 1.016 |
Install
Binary package:
pkgin install p5-File-pushd
From pkgsrc:
cd /usr/pkgsrc/devel/p5-File-pushd && make install clean