XP is just a number | |
PerlMonks |
Re: execute function with name passed as string parameterby Utilitarian (Vicar) |
on May 05, 2011 at 10:09 UTC ( [id://903108]=note: print w/replies, xml ) | Need Help?? |
You are not assigning a code_ref in your hash, but rather the out put of your routines, this causes them to run on assignment.
print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
In Section
Seekers of Perl Wisdom
|
|