Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: splitting files by number of words

by si_lence (Deacon)
on Aug 06, 2009 at 13:26 UTC ( [id://786421] : note . print w/replies, xml ) Need Help??


in reply to Re^2: splitting files by number of words
in thread splitting files by number of words

or you could just use
$total_words += split while(<DATA>);
cheers, si_lence