Help for this page

Select Code to Download


  1. or download this
    $ perl script.pl data.dat
    
  2. or download this
    $ cat data.dat | perl script.pl
    
  3. or download this
        while (<>) {
        ...            # code for each line
        }
    
  4. or download this
        unshift(@ARGV, '-') unless @ARGV;
        while ($ARGV = shift) {
    ...
            ...        # code for each line
        }
        }