develooper Front page | perl.perl5.porters | Postings from September 2013

documentation for new slice syntax

Thread Next
From:
Karen Etheridge
Date:
September 21, 2013 00:34
Subject:
documentation for new slice syntax
Message ID:
20130921003402.GB774@tequila

5.19.4's perldelta says:

    New slice syntax

    The new %hash{...} and %array[...] syntax returns a list of key/value (or
    index/value) pairs.

I have two concerns with this rather terse note: it doesn't specify whether
assignments are possible with this new syntax (assigning more than one
field at once), and there is no reference to further documentation on this
feature.  Presumably it is documented somewhere in perldelta and/or
perlsyn, so could a reference to the document and section be added?



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About