my %function = ( allergies => sub { print "in allergies\n" }, immunizations => sub { print "in immunizations\n" }, ); ... $function{$file}->() if exists $function{$file};
In reply to Re: How to call a Sub / Function with changing name
by choroba
in thread How to call a Sub / Function with changing name
by kevyt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |