Just another Perl shrine | |
PerlMonks |
Re^3: problem with foreachby Jasper (Chaplain) |
on Jun 16, 2006 at 11:37 UTC ( [id://555750]=note: print w/replies, xml ) | Need Help?? |
You should remember that there _is_ a difference betwixt ++$b and $b++, however. ++$b doesn't have the nuisance of making a copy of its original value to return before incrementing, and therefore it's slightly less efficient if, as in this case, you don't need to know what that value was.
In Section
Seekers of Perl Wisdom
|
|