In Ruby & Python, one can have a regular expression, with backreferences, and then access the backrefernces as a list, and it's sub lists.
For example, The Ruby code below returns the 1st backreference from a regexp
I am looking for something other than:
@a =($1,$2,$3,$4) ;
I could not find something similar to that in PERL, other than a reference to $+ $-, which is not what I wanted and has a warning about performance. Any ideas?