in reply to Re: calculating lines
in thread calculating lines

my $linecount = $. ;
is code for a linecount...
how do i do a word count?

Replies are listed 'Best First'.
Re^3: calculating lines
by Zaxo (Archbishop) on Jan 12, 2007 at 01:44 UTC

    $wc += split; within the while loop will do it. That's another case of default arguments.

    After Compline,
    Zaxo