devel/p5-File-pushd 1.016 DragonFly
Temporary chdir for a limited scope in Perl
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- APACHE20
- Categories
- devel, perl5
- Package size
- 10.9 KiB, 23.3 KiB installed
Description
File::pushd does a temporary chdir that is easily and automatically reverted. It works by creating a simple 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 |
|---|---|---|
| DragonFly | devel/p5-File-pushd | 1.016 |
| FreeBSD | devel/p5-File-pushd | 1.016 |
| OpenBSD | devel/p5-File-pushd | 1.016p0 |
| NetBSD | devel/p5-File-pushd | 1.016nb9 |
| MidnightBSD | devel/p5-File-pushd | 1.016 |
| HardenedBSD | devel/p5-File-pushd | 1.016 |
| GhostBSD | devel/p5-File-pushd | 1.016 |
Install
Binary package:
pkg install p5-File-pushd
From DPorts:
cd /usr/dports/devel/p5-File-pushd && make install clean