Help for this page

Select Code to Download


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