Help for this page

Select Code to Download


  1. or download this
    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").