In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/dca6023ddb16b8490f5bb9102a66b1515159ebf5?hp=9e67a8c1b21482ed5fada053dd462eb23320dc86>
- Log ----------------------------------------------------------------- commit dca6023ddb16b8490f5bb9102a66b1515159ebf5 Author: Smylers <[email protected]> Date: Fri Aug 12 16:34:17 2016 +0100 Remove claim that state @a will be supported perldiag doesn't seem to be the right place to announce future changes to Perl, especially since this claim was made 9 years ago, in 6dbe9451, and doesn't show any sign of becoming true. M pod/perldiag.pod commit 7a6da5d4ce6a9ff629145784e1cb827053ecf9fc Author: Father Chrysostomos <[email protected]> Date: Fri Aug 12 15:28:35 2016 -0700 More AUTHORS sorting M AUTHORS ----------------------------------------------------------------------- Summary of changes: AUTHORS | 2 +- pod/perldiag.pod | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/AUTHORS b/AUTHORS index 7fed86b..ce4cca1 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1096,9 +1096,9 @@ Sean Davis <[email protected]> Sean M. Burke <[email protected]> Sean Robinson <[email protected]> Sean Sheedy <[email protected]> -Sebastian Wittmeier <[email protected]> Sebastian Schmidt <[email protected]> Sebastian Steinlechner <[email protected]> +Sebastian Wittmeier <[email protected]> Sébastien Aperghis-Tramoni <[email protected]> Sebastien Barre <[email protected]> Sergey Alekseev <[email protected]> diff --git a/pod/perldiag.pod b/pod/perldiag.pod index bc08652..bd5039a 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -2741,11 +2741,10 @@ either consume text or fail. =item Initialization of state variables in list context currently forbidden -(F) Currently the implementation of "state" only permits the -initialization of scalar variables in scalar context. Re-write -C<state ($a) = 42> as C<state $a = 42> to change from list to scalar -context. Constructions such as C<state (@a) = foo()> will be -supported in a future perl release. +(F) C<state> only permits initializing a single scalar variable, in scalar +context. So C<state $a = 42> is allowed, but not C<state ($a) = 42>. To apply +state semantics to a hash or array, store a hash or array reference in a scalar +variable. =item %%s[%s] in scalar context better written as $%s[%s] -- Perl5 Master Repository
