Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

reset

Resets ?? (one-shot match) operators so they can match again.

The ?? operator matches only once between calls to reset. Without an argument, resets all one-shot matches in the current package. With a character-range argument, resets only those in variables whose names fall within the range.

This is a deprecated and rarely used feature. Returns 1.

Implementation status: Stub (no-op). PetaPerl does not currently track ?? match state.

Synopsis

reset;            # reset all ?? in current package
reset 'a-z';      # reset ?? in variables matching range

See Also

m//g, pos