Slightly relating issue. Is
better thanwhile (local $_= each %hash) { .... }
? Does perl optimize the latter or does it build a possibly large temporary list of the keys? I know that with arrays,for (keys %hash) { .... }
is fast.for (@array) { .... }
In reply to Re: It's bad manners to slurp
by ambrus
in thread It's bad manners to slurp
by rinceWind
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |