BSD Ports

devel/p5-File-chdir 0.1011 MidnightBSD

More sensible way to change directories

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
artistic, gpl+
Categories
devel, perl5

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
MidnightBSDdevel/p5-File-chdir0.1011
FreeBSDdevel/p5-File-chdir0.1011
OpenBSDdevel/p5-File-chdir0.1011
NetBSDdevel/p5-File-chdir0.1011nb4
DragonFlydevel/p5-File-chdir0.1011
HardenedBSDdevel/p5-File-chdir0.1011
GhostBSDdevel/p5-File-chdir0.1011

Install

Binary package:

mport install p5-File-chdir

From mports:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-File-chdir>0:devel/p5-File-chdir

Dependencies

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%PERL5_MAN3%%/File::chdir.3.gz
  • %%SITE_PERL%%/File/chdir.pm
distinfo 1
FileSizeSHA256
File-chdir-0.1011.tar.gz2512731ebf912df48d5d681def74b9880d78b1f3aca4351a0ed1fe3570b8e03af6c79
Master sites 1
  • CPAN