Help for this page

Select Code to Download


  1. or download this
        #!/usr/bin/perl
        use strict;
    ...
        print $printline;
        
        close (FILE) or die "Could not close sample.txt: $!";
    
  2. or download this
    
        open (FILE, '<', 'sample.txt') or die "Could not open sample.txt: 
    +$!";
    ...
    }
        close (FILE) or die "Could not close sample.txt: $!";
        close (FILE1) or die "Could not close output.txt: $!";