Help for this page

Select Code to Download


  1. or download this
    open (IN, "<", $ARGV[0]);
    my $i =0;
    while (<IN>){$i++}
    print $i;
    
  2. or download this
    
    perl -e 'open(IN,"<", $ARGV[0]);$i=0;while(<IN>){$i++};print $i' in.fi
    +le
    
  3. or download this
    perl -ne '$i++; print $i' in.file
    
  4. or download this
    
    perl -ne '$i++; print $i' in.file