The stupid question is the question not asked | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
This is probably a silly question but I'm asking it anyway. I'm pretty sure it's not possible in Perl but I'm wondering if something like this technique has a name. So let's say I have the following functions:
Each time I want to print a new word, I write a new function. But instead, is it possible to do something like this:
Sure, I could create a generic function and do function('fish') but function_fish is so much easier. :)
$PM = "Perl Monk's"; In reply to Technique for building arguments from function name? by nysus
|
|