Help for this page

Select Code to Download


  1. or download this
      open FILE, ">testfile.log" || 
            die "Unable to create file: $!";
    
  2. or download this
      open(FILE, ">testfile.log") || 
            die "Unable to create file: $!";
    
  3. or download this
      open FILE, ">testfile.log"
            or die "Unable to create file: $!";
    
  4. or download this
      open(FILE, ">", $log) or die "$log: $!";