Help for this page

Select Code to Download


  1. or download this
    package Test;
    use strict;
    ...
            $self{theValue} = $value;
    } 
    1;
    
  2. or download this
    Global symbol "%self" requires explicit package name at Test.pm line 1
    +5.
    Global symbol "%self" requires explicit package name at Test.pm line 2
    +2.
    
  3. or download this
        (F) You've said "use strict" or "use strict vars", which indicates
    + 
        that all variables must either be lexically scoped (using "my" or 
    +"state"), 
        declared beforehand using "our", or explicitly qualified to say 
        which package the global variable is in (using "::").