On Mon Sep 19 18:42:56 2005, avised@kbcfp.com wrote:
Show quoted text> In my opinion, it would be best to throw an exception, but whatever the
> behaviour is it needs to be documented.
It seems to set $! from the chdir() call. It should also return false on
failure and the new dir on success:
sub STORE {
return unless defined $_[1];
my $did_chdir = File::chdir::_chdir($_[1]);
return $did_chdir ? $Real_CWD : $did_chdir;
}
but it doesn't seem to do so:
Show quoted text> perl -MFile::chdir -e '$foo = "/"; print +($CWD = $foo), "\n"' ;
/
Show quoted text> perl -MFile::chdir -e '$foo = "/q"; print +($CWD = $foo), "\n"' ;
/home/scratchbox/doc