good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: How Much Is Too Much (on one line of code)?by barrachois (Pilgrim) |
on Jun 20, 2007 at 06:56 UTC ( [id://622189]=note: print w/replies, xml ) | Need Help?? |
I like this approach, too; the hash makes exceptions to the "uppercase bracket" basic rule perfectly clear. However, I also agree with other posters (1) treating $country as a temporary variable isn't great practice, and (2) it's not entirely clear what $card->country is allowed to return.
Given those concerns, my own preference would be
In Section
Seekers of Perl Wisdom
|
|