Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Summing repeated counts for items stored in separate fileby mrpeabody (Friar) |
on Jul 28, 2007 at 04:41 UTC ( [id://629252]=note: print w/replies, xml ) | Need Help?? |
Initializing a variable in dmorgo's code would also be trivial. Your suggestion forces the programmer to do a lot of extra typing up front in order to maybe save a small amount of typing later, which seems like a poor tradeoff. I would also argue that dmorgo's code has a clarity advantage in that it is immediately obvious which variables don't have default values and which do.
In Section
Seekers of Perl Wisdom
|
|