- 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.
- or download this
$$ref = "Gore";
- or download this
$ref = \&getGlobalName();
- or download this
$GlobalName = "Clinton";
...
>>Gore
After: Clinton
- or download this
$GlobalName = "Clinton";
...
#prints
Before: Clinton
After: Gore
- or download this
$GlobalName = "Clinton";
...
# Also prints
Before: Clinton
After: Gore
- or download this
$GlobalName = "Clinton";
...
# Also prints
Before: Clinton
After: Gore