devel/p5-File-chdir 0.1011 OpenBSD
more sensible way to change directories
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- The OpenBSD ports mailing-list <[email protected]>
- 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
| System | Port | Version |
|---|---|---|
| OpenBSD | devel/p5-File-chdir | 0.1011 |
| FreeBSD | devel/p5-File-chdir | 0.1011 |
| NetBSD | devel/p5-File-chdir | 0.1011nb4 |
| DragonFly | devel/p5-File-chdir | 0.1011 |
| MidnightBSD | devel/p5-File-chdir | 0.1011 |
| HardenedBSD | devel/p5-File-chdir | 0.1011 |
| GhostBSD | devel/p5-File-chdir | 0.1011 |
Install
Binary package:
pkg_add p5-File-chdir
From the ports tree:
cd /usr/ports/devel/p5-File-chdir && make install