Main > Programming > Libraries >

File::pushd 0.99

File::pushd 0.99

Sponsored Links

File::pushd 0.99 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.015 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 1012
Date added: 2007-01-19
Publisher: David A Golden

File::pushd 0.99 description

File::pushd is a Perl module to change directory temporarily for a limited scope.

SYNOPSIS

use File::pushd;

chdir $ENV{HOME};

# change directory again for a limited scope
{
my $dir = pushd( /tmp );
# working directory changed to /tmp
}
# working directory has reverted to $ENV{HOME}

# tempd() is equivalent to pushd( File::Temp::tempdir )
{
my $dir = tempd();
}

# object stringifies naturally as an absolute path
{
my $dir = pushd( /tmp );
my $filename = File::Spec->catfile( $dir, "somefile.txt" );
# gives /tmp/somefile.txt
}

File::pushd does a temporary chdir that is easily and automatically reverted, similar to pushd in some Unix command shells. It works by creating an 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.

This is very handy when working with temporary directories for tasks like testing; a function is provided to streamline getting a temporary directory from File::Temp.
For convenience, the object stringifies as the canonical form of the absolute pathname of the directory entered.

File::pushd 0.99 Screenshot

Advertisements

File::pushd 0.99 Keywords

Bookmark File::pushd 0.99

Hyperlink code:
Link for forum:

File::pushd 0.99 Copyright

WareSeeker periodically updates pricing and software information of File::pushd 0.99 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of File::pushd 0.99 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
File::Size is a Perl module to get the size of files and directories. Free Download
dcd is a Linux CD player made by a slacker, for slackers. Free Download
File::Wildcard is a Perl module for enhanced glob processing. Free Download
mod_myuserdir is Apache 1.3.xx module for dynamically configured mass userdirs with php. Free Download
File::Find is a Perl module to traverse a directory tree. Free Download
IO::Prompt is a Perl module to interactively prompt for user input. Free Download
And-httpd is an HTTP server that currently only maps URLs to files. Free Download
Audio Daemon is a perl module to daemonize various players and support a single UDP interace for different players. Free Download