NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Portable chdir('/'); (Score:1)
If one is at the root of the filesystem on *NIX (root of volume on OS's?) Then
@CWDis the empty list. However, setting@CWD=();leaves your process in its current location, at least on Perl 5.8.0 on Linux with File::chdir 0.06.This, a portable way to get to the top of the directory structure, would be a great feature and it seems that some thought has been given to implementing such a thing. There is a
sub CLEARdefined in the package which sets a package variable but the directory position remains unchanRe:Portable chdir('/'); (Score:2)
Reply to This
Parent