in reply to $1 trap

As of Perl 5.7.0 this behaviour has changed:
The regular expression captured submatches ($1, $2, ...) are now more consistently unset if the match fails, instead of leaving false data lying around in them.
ihb

Replies are listed 'Best First'.
Re: Re: $1 trap
by diotalevi (Canon) on Aug 10, 2003 at 18:21 UTC

    Not to imply that its actually done consistently though. Just more consistently.