Help for this page

Select Code to Download


  1. or download this
    NOTE: In C++ there are cases where the calling code can "reach into" 
               the function via the returned pointer or reference. 
    ...
    I have been unable to hack into a subroutine via its scalar return. 
    If you know of a way it can be done, please let me know, as this would
    + be a horrid violation of encapsulation.
    
  2. or download this
    $$ref = "Gore";
    
  3. or download this
    $ref = \&getGlobalName();
    
  4. or download this
    $GlobalName = "Clinton";
    
    ...
    >>Gore
    After: Clinton
    
  5. or download this
    $GlobalName = "Clinton";
    
    ...
    #prints
    Before: Clinton
    After: Gore
    
  6. or download this
    $GlobalName = "Clinton";
    
    ...
    # Also prints
    Before: Clinton
    After: Gore
    
  7. or download this
    $GlobalName = "Clinton";
    
    ...
    # Also prints
    Before: Clinton
    After: Gore