How can I use a variable to call a subroutine with "use strict"? eg.
#!/usr/bin/perl -w #use strict; my $ref="this"; my $x=&$ref(); print "$x\n"; sub this {return "hi!"}
In reply to variable reference to subroutine while "strict" by halfcountplus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |