$ perl -wle 'sub f { print @_ }; my $x = "f"; $x->(3)' 3
If you work under use strict; (which is always recommended), you need no strict 'refs'; in the scope in which you do this call.
In reply to Re: dynamic perl calls
by moritz
in thread dynamic perl calls
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |