BSD Ports

devel/p5-File-chdir 0.1011 DragonFly

More sensible way to change directories

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
devel, perl5
Package size
15.1 KiB, 51.6 KiB installed

Description

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.

File::chdir gives you an alternative, $CWD and @CWD. These two variables combine all the power of chdir(), File::Spec and Cwd.

In the other systems

SystemPortVersion
DragonFlydevel/p5-File-chdir0.1011
FreeBSDdevel/p5-File-chdir0.1011
OpenBSDdevel/p5-File-chdir0.1011
NetBSDdevel/p5-File-chdir0.1011nb4
MidnightBSDdevel/p5-File-chdir0.1011
HardenedBSDdevel/p5-File-chdir0.1011
GhostBSDdevel/p5-File-chdir0.1011

Install

Binary package:

pkg install p5-File-chdir

From DPorts:

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

Dependencies

Run dependencies 1