prints : "two"perl -e '$choice="1"; %hash=( 0 => one, 1 => two ); sub one {print "on +e\n"}; sub two {print "two\n"};$hash{1}()'
Syntactic sugar causes cancer of the semicolon. --Alan Perlis
In reply to Re: execute function with name passed as string parameter
by NetWallah
in thread execute function with name passed as string parameter
by rgcosma
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |