Movatterモバイル変換


[0]ホーム

URL:


 / 
Cwd-Guard-0.05
River stage three • 4 direct dependents • 983 total dependents
/Cwd::Guard

NAME

Cwd::Guard - Temporary changing working directory (chdir)

SYNOPSIS

use Cwd::Guard qw/cwd_guard/;use Cwd;my $dir = getcwd;MYBLOCK: {    my $guard = cwd_guard('/tmp/xxxxx') or die "failed chdir: $Cwd::Guard::Error";    # chdir to /tmp/xxxxx}# back to $dir

DESCRIPTION

CORE::chdir Cwd:: Guard can change the current directory (chdir) using a limited scope.

FUNCTIONS

cwd_guard($dir);

chdir to $dir and returns Cwd::Guard object. return to current working directory, if this object destroyed. if failed to chdir, cwd_guard return undefined value. You can get error messages with $Gwd::Guard::Error.

AUTHOR

Masahiro Nagano <kazeburo {at} gmail.com>

SEE ALSO

File::chdir,File::pushd

LICENSE

Copyright (C) Masahiro Nagano

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Module Install Instructions

To install Cwd::Guard, copy and paste the appropriate command in to your terminal.

cpanm

cpanm Cwd::Guard

CPAN shell

perl -MCPAN -e shellinstall Cwd::Guard

For more information on module installation, please visitthe detailed CPAN module installation guide.

Keyboard Shortcuts

Global
sFocus search bar
?Bring up this help dialog
GitHub
gpGo to pull requests
gigo to github issues (only if github is preferred repository)
POD
gaGo to author
gcGo to changes
giGo to issues
gdGo to dist
grGo to repository/SCM
gsGo to source
gbGo to file browse
Search terms
module: (e.g.module:Plugin)
distribution: (e.g.distribution:Dancer auth)
author: (e.g.author:SONGMU Redis)
version: (e.g.version:1.00)

[8]ページ先頭

©2009-2025 Movatter.jp