Help for this page

Select Code to Download


  1. or download this
    # Save a reference to the original variable:
    *nothingToSeeHere::var= \$var;
    ...
    *var= \undef; # (but see footnote)
    # Restore the previous instance (and thus the previous value):
    ON_SCOPE_EXIT { *var= \$nothingToSeeHere::var; }