Help for this page

Select Code to Download


  1. or download this
    my @files = <*.txt>;
    
  2. or download this
    {
        local @ARGV = <*.txt>;
    ...
            // $_ contains the lines of the files one at a time; for each 
    +file in turn
        }
    }
    
  3. or download this
    { 
        local @ARGV = <*.txt>; 
    ...
            chomp; print $ARGV, '(', $., '):', $_; 
        } 
    }