On 4/3/06, The Ghost <[EMAIL PROTECTED]> wrote: > based upon the string in a variable, I want to run a particular > subroutine:
One way to do this (without the dreaded soft reference) is to have a lookup table: my %table = ( cat => \&cat, jackalope => \&jackalope, yeti => \&yeti, ); Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>