in reply to Count of split data
$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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Count of split data
by Anonymous Monk on Jan 12, 2007 at 15:29 UTC |