Help for this page

Select Code to Download


  1. or download this
    # AUTOLOAD is used to 
    #  1) 'autoload' constants from the constant() function in ABC.xs  
    ...
        eval "sub $AUTOLOAD { $val }"; # can this be $constname rather tha
    +n $AUTOLOAD?
        goto &$AUTOLOAD; # can this just be 'return' if all of the defined
    + names really are constants?
    }
    
  2. or download this
    package XYZ::ABC::Scalar;
    use XYZ::ABC qw(AUTOLOAD);  
    our @ISA = qw(XYZ::ABC);         # are this and the use both needed?
    1;