Not sure if this answers your general question, but here are some specific alternatives:
c:\@Work\Perl\monks>perl -wMstrict -le "my $my_print = sub { print qq{howdy @_}; }; ;; my $conf = { 'cmd' => $my_print }; ;; &{ $conf->{'cmd'} }; $conf->{'cmd'}->('there'); $conf->{cmd}('doody'); " howdy howdy there howdy doody
Give a man a fish: <%-{-{-{-<
In reply to Re^3: yaml dynamically load in perl
by AnomalousMonk
in thread yaml dynamically load in perl
by louie_45
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |