I'm 99% sure you can do this but I can't get it. Any help is appreciated
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
Code:
my %equipment_sub_map = {
'CISCO 2651 ROUTER' => \&cisco_2651,
'CISCO 3845-V/K9 VOICE BUNDLE ROUTER' => sub{print "Hi\n";},
};
sub cisco_2651 {
print "Hi 2\n";
}
&{$equipment_sub_map{"CISCO 2651 ROUTER"}};
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;