Help for this page

Select Code to Download


  1. or download this
    my $x = 'Foo';
    
    my $sub_ref = do {
        no strict 'refs';
        \&{$x};
    };
    
  2. or download this
    my $x = 'Foo';
    
    my $sub_ref = \&{$x};