Help for this page

Select Code to Download


  1. or download this
    open(LOG, "< $file") or do {
      print STDERR "Sorry, could not open $file: $!\n";
      exit (1);
    }
    
  2. or download this
    unless (open(LOG, "< $file"))
    {
      print STDERR "Sorry, could not open $file: $!\n";
      exit (1);
    }