in reply to Perl's POD's description of the use of capturing special variables.
The value of the special capturing variables will be undef in the event of no match within current scope, or the value of the most recent successful match's capture in the current scope even if there has been a subsequent failed match.I don't think that this is particularly clear. After a failed match, will $1 be undef or previous successful match? What effect does {} scope have on this?
--
I'm Not Just Another Perl Hacker
|
|---|