http://qs321.pair.com?node_id=1022615


in reply to Get variables from if with regex

named captures.

From the perlre page ...

" ... as of Perl 5.10.0 you may use named capture buffers .... The notation is (?<name>...) to declare ..." (and $+{name} to access the captured value in code.

As Occam said: Entia non sunt multiplicanda praeter necessitatem.