good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
How to conditionally execute a subroutine defined as hash valueby Anonymous Monk |
on Apr 02, 2014 at 10:06 UTC ( [id://1080736]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello, is there a way to conditionally execute a subroutine defined as hash value? In the example below I get both subroutines executed, while I'd like to only execute one of them based on the value of $test. Thanks
Back to
Seekers of Perl Wisdom
|
|