Help for this page

Select Code to Download


  1. or download this
    # Assuming $path contains the full pathname of the file/directory
    if (-d $path) {
    ...
    } elsif (-f $path) {
        # It's an existing file
    }