|
|
| XP is just a number | |
| PerlMonks |
Re^2: Pearls (not really) of Perl programmingby revdiablo (Prior) |
| on Nov 24, 2004 at 21:35 UTC ( #410254=note: print w/ replies, xml ) | Need Help?? |
|
What's bad about this? Sure, there are other ways to do it, but it doesn't seem particularly egregious to me. For those following along at home, here are some other ways:
Personally, I like the original much better than these alternatives. The only other way that I would possibly use is:
But substr as an lvalue is not something everyone knows about, so it's not clearly the best option.
In Section
Meditations
|
|
||||||||||||||||||||||