in reply to Re^3: Count Using Split
in thread Count Using Split

Having an array of identical elements is rather useless. The only thing you can do is count them. Why not get the count from the start.
my $t = () = /mapping id="/g;