in reply to Re: Perl Idioms Explained - my $count = () = /.../g
in thread Perl Idioms Explained - my $count = () = /.../g
I'd say "but that builds up and then destroys an array referencce", but I don't know which takes more time, and then I'd say "benchmark it", but this would be a case of micro-optimizing. So I will agree with your intent: use whichever construct is clearer to you.
In Section
Meditations