You can do something.
open my $d, '<', '..' or die $!; # Doesn't die. say -e $d; # 1. say -d $d; # 1. say -f $d; # Nothing. chdir $d or die $!; # Switches to the parent directory ( +read "perldoc -f chdir").
In reply to Re^2: "readdir() attempted on invalid dirhandle" error?
by choroba
in thread "readdir() attempted on invalid dirhandle" error?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |