more useful options | |
PerlMonks |
Re: Shortening "$bar{foo} if exists $bar{foo}"?by Aristotle (Chancellor) |
on Oct 03, 2003 at 22:42 UTC ( [id://296420]=note: print w/replies, xml ) | Need Help?? |
I've been bothered by code duplication when using exists many a time. Unfortunately, I've never ever found a satisfactory solution (and believe me, it's not for lack of trying).
Makeshifts last the longest.
In Section
Seekers of Perl Wisdom
|
|