Do you know where your variables are? | |
PerlMonks |
Re: Creating dispatch table with variable in function nameby stevieb (Canon) |
on Nov 21, 2017 at 19:43 UTC ( [id://1203943]=note: print w/replies, xml ) | Need Help?? |
It "works" fine for me:
Output:
...so you need to describe what's not working as expected. Are you wanting to call the sub like this?:
If so, you need to map the '_create_' to both arguments to map. This example uses a second map() to modify the $_ variable on the way into the map that creates the actual dispatch table.
Output:
In Section
Seekers of Perl Wisdom
|
|