Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -l
    
    my @file = <>;
    print 0+@file;
    
  2. or download this
    $ ./bar.pl data.txt 
    46
    $ wc data.txt 
     46  36 346 data.txt