Help for this page

Select Code to Download


  1. or download this
    sub AUTOLOAD : lvalue {
        (!ref ${$AUTOLOAD}) ? ${$AUTOLOAD} 
    ...
                                            : (ref ${$AUTOLOAD} eq 'ARRAY'
    +) ? @{${$AUTOLOAD}}
                                                                          
    +  : %{${$AUTOLOAD}};
    }
    
  2. or download this
    #include AUTOLOAD from above . . .
    
    &foo = ['a', 'b', 'c'];
    print &foo->[0];