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;
--
<http://dave.org.uk>

"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
    Thanks for such quick responses!!

    It works and I think perlmonks forum is the best technology forum (compared to the hundreds of other forums) because of the quick responses and expertise.