Help for this page

Select Code to Download


  1. or download this
    sub countLines {
        my $filename = shift;
    ...
        $count ++ while <$fh>
        return $count:
    }
    
  2. or download this
    sub countLines {
        my $filename = shift;
    ...
        $count += tr[\n][\n] while <$fh>;
        return $count:
    }