in reply to
Count of split data
You're only incrementing by a count of 1 with $ct++, but what you want is to increment it by the number of elements in @arr. Do that like so:
$ct = $ct + scalar(@arr); # or $ct += @arr;
[download]
xoxo,
Andy
Comment on
Re: Count of split data
Download
Code
In Section
Seekers of Perl Wisdom