Help for this page

Select Code to Download


  1. or download this
    { 
        package Foo::Bar::Baz;
        our $x = 123;
    }
    
  2. or download this
    $ns = 'Foo::Bar::Baz::';
    $ref = \${ $::{$ns}{x} };
    
  3. or download this
    $ns = 'Foo::Bar::Baz';
    my $stash = \%::;
    ...
    }
    
    $ref = \${ $stash->{x} };
    
  4. or download this
    {
        no strict 'refs';
        $ref = \${ "Foo::Bar::Baz::x" };
    }