Help for this page

Select Code to Download


  1. or download this
        open FH, "foo" or die "Can't open foo: $!";
        while (<FH>) {
            ## current line is in $_, process it
        }
        close FH or warn "Error closing foo: $!";
    
  2. or download this
        while (<>) {
            ## line is in $_
        }
    
  3. or download this
        $ process.pl foo.txt bar.txt baz.txt