Help for this page

Select Code to Download


  1. or download this
        print $package::var;
    
  2. or download this
        no strict 'refs';
        print ${$package.'::var'};
    
  3. or download this
        require $package;
    
  4. or download this
            require Foo::Bar;    # a splendid bareword
    
  5. or download this
            $class = 'Foo::Bar';
            require $class;      # $class is not a bareword 
        #or            
            require "Foo::Bar";  # not a bareword because of the ""
    
  6. or download this
            eval "require $class";