This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Deparse: don't parenthesise state @a = ...
authorDavid Mitchell <davem@iabyn.com>
Wed, 22 Nov 2017 13:32:03 +0000 (13:32 +0000)
committerDavid Mitchell <davem@iabyn.com>
Thu, 23 Nov 2017 08:52:16 +0000 (08:52 +0000)
commitc4874d8a25094b3c3426b7831ebba86fc934a652
tree2ff7791b11918c3e44c6295924e5b658c476d8d5
parentdcf4c706f6c508e0b024598eb0abee4a6c2677cc
Deparse: don't parenthesise state @a = ...

It was deparsing

    state @a = ...

as

    (state(@a)) = ...

(and similarly for CORE::state(...))

However, a list assign of a state array/hash is currently only legal
in the absence of parens.
lib/B/Deparse-core.t
lib/B/Deparse.pm
lib/B/Deparse.t