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.
In reply to Re^4: accessing the result of a match as an array
by AnomalousMonk
in thread accessing the result of a match as an array
by intuited
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |