XP is just a number | |
PerlMonks |
Re: why use a coderef?by cLive ;-) (Prior) |
on Jun 25, 2007 at 22:11 UTC ( [id://623269]=note: print w/replies, xml ) | Need Help?? |
All good responses so far. I'll agree, in this example, I can't see a reason though. Just to add, another useful instance is if you want to avoid a long nested "if/else" structure, eg, instead of: use this instead
In Section
Seekers of Perl Wisdom
|
|