http://www.perlmonks.org?node_id=435587


in reply to Re: Perl oddities
in thread Perl oddities

I generally do as gaal suggests. However, if this were impossible, and if you had a long list of regex capture variables, you could always do:

   my ( $this, $that, $some, $other, $foo, $bar, $baz ) = ( $1 .. $+ );

dave