in reply to Re^3: accessing the result of a match as an array
in thread accessing the result of a match as an array
What's the advantage of your latter snippet ...
None. In the context of the OP, it's essentially a Stupid Regex Trick. But then, in the same context
pop @{[ whatever ]}
is essentially a stupid array dereference trick.
Update: ikegami nailed the reason why.
|
|---|