"be consistent" | |
PerlMonks |
Re: How to conditionally execute a subroutine defined as hash valueby BrowserUk (Patriarch) |
on Apr 02, 2014 at 10:25 UTC ( [id://1080738]=note: print w/replies, xml ) | Need Help?? |
By adding parens, where you are attempting to store the address of your subs: A => \&print_A(),, you are invoking the subs and then string the address of whatever is returned (the value 1 from print). Try it this way:
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|