Perl: the Markov chain saw | |
PerlMonks |
Re: Check exist of anonymous subroutine before calling it within regexp substitute?by kyle (Abbot) |
on Oct 29, 2009 at 02:03 UTC ( [id://803851]=note: print w/replies, xml ) | Need Help?? |
If it were my code, I'd probably write it the way moritz has it, but if you're extra paranoid, you might do something like this:
That will withstand missing elements as well as elements that exist but don't have a code reference in them.
In Section
Seekers of Perl Wisdom
|
|