- or download this
#!/usr/bin/perl -w
use strict;
...
&$symbolic; # ack!
&{$symbolic}; # ook!
&{"foo"}; # eek!
- or download this
use strict;
sub foo {
...
my $sref = \&{$bar}; # works!
$sref->(1,2,3); # foo: 1 2 3
- or download this
use strict;
my $foo = "this is foo";
my $bar = "foo";
my $ref = \${$bar}; # ack!