Shorter even. {grin}++$count for @listOfThings;
And yeah, for this specific example, I wouldn't even use a loop, as in:
$count += @listOfThings;
-- Randal L. Schwartz, Perl hacker
In reply to Re: Re: Back to Remedial Perl for Me: map{} function
by merlyn
in thread Back to Remedial Perl for Me: map{} function
by jreades
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |