Is it possible to perform a named-group match in Perl\'s regex syntax as with Python\'s? I always bind the $n values to proper names after matching, so I\'d fin
$n
Perl uses (?pattern) to specify names captures. You have to use the %+ hash to retrieve them.
(?pattern)
%+
$variable =~ /(?\d+)/; print "Count is $+{count}";
This is only supported on Perl 5.10 and higher though.