Help for this page

Select Code to Download


  1. or download this
    {
        package a;
    ...
        # or the temp variable can be avoided:
        print ${ "$otherpkg\::foo" }, "\n";
    }
    
  2. or download this
    use strict;
    {
    ...
        my $otherpkg = "a";
        print $otherpkg->foo, "\n";
    }