BSD Ports

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

SystemPortVersion
DragonFlydevel/p5-File-pushd1.016
FreeBSDdevel/p5-File-pushd1.016
OpenBSDdevel/p5-File-pushd1.016p0
NetBSDdevel/p5-File-pushd1.016nb9
MidnightBSDdevel/p5-File-pushd1.016
HardenedBSDdevel/p5-File-pushd1.016
GhostBSDdevel/p5-File-pushd1.016

Install

Binary package:

pkg install p5-File-pushd

From DPorts:

cd /usr/dports/devel/p5-File-pushd && make install clean

Dependencies

Run dependencies 1