Help for this page

Select Code to Download


  1. or download this
    if (-d $pathname) {
      # $pathname exists and is a directory
    ...
      # $pathname doesn't even exist
      # ...
    }
    
  2. or download this
    if (-d $d) {
      open FILE, "$d/$f" or die "Open failed";
    ...
    else {
      die "No directory $d";
    }
    
  3. or download this
    open FILE, "$d/$f" or die "Open failed";