Syntactic Confectionery Delight | |
PerlMonks |
Re: find the element position of $scalarby tadman (Prior) |
on Feb 08, 2002 at 14:11 UTC ( [id://144104]=note: print w/replies, xml ) | Need Help?? |
Here's a few quick bits of code.
Indexed iteration: Regular iteration with incremented tracker: Old-school C-style method: In this case, I'd say the first is "better" since it requires less code.
In Section
Seekers of Perl Wisdom
|
|