Help for this page

Select Code to Download


  1. or download this
    open(FILE, "2.txt")
        or die("can't open myfile.txt: $!\n");
    
  2. or download this
    open FILEHANDLE, "> output.txt"
    
  3. or download this
    open FILEHANDLE, ">> output.txt"
    
  4. or download this
    $folder = '/tmp';
    opendir TMPDIR, $folder
    ...
    
    }
    closedir TMPDIR;
    
  5. or download this
    #!/usr/bin/perl -w
    # Even though W32 doesn't process the #! portion, I believe it
    ...
    }
    closedir TMPDIR;