in reply to strange behavior of parenthesis
These are list assignments, and the right side is evaluated in list context:$foo = ...
What the match operator returns depends on success of the match, context, presense of capturing parenthesis, and whether there's a //g flag. See the doc for details.($foo) = ... @foo = ... %foo = ... @foo{LIST} = ... @foo[LIST] = ... () = ...
|
|---|