$ct++
You're simply adding one each time round the loop. I think you should be adding the number of elements in the array @arr.
$ct += @arr;
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: Count of split data
by davorg
in thread Count of split data
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |