This function is generally used at the top of a loop or in a
block at the end of a loop, to clear global
variables or reset
searches so that they work again. The
expression is interpreted as a list of single characters (hyphens are allowed
for ranges). All scalar variables, arrays, and hashes beginning with one of
those letters are reset to their pristine state. If the expression is omitted,
reset to match again. The function resets variables or searches for the current
package only. It always returns 1.
To reset all "
" variables, say this:
To reset all lowercase variables, say this:
Lastly, to just reset
Note that resetting "
" is not recommended since you'll
wipe out your
Lexical variables (created by
) are not
affected. Use of