develooper Front page | perl.perl5.porters | Postings from April 2018

Re: [perl #133109] push on scalar forbidden: why?

Thread Previous | Thread Next
From:
Dan Book
Date:
April 19, 2018 22:16
Subject:
Re: [perl #133109] push on scalar forbidden: why?
Message ID:
CABMkAVWk3618=ShaHMSm14QaJLY5MVJGUr1ZCUVpHLRvGyCCcg@mail.gmail.com
On Thu, Apr 19, 2018 at 6:09 PM, L A Walsh <perl-diddler@tlinx.org> wrote:
...

>    The manpage shows:
>       Functions for real @ARRAYs
>           "each", "keys", "pop", "push", "shift", "splice", "unshift",
>           "values"
>
>       Functions for real %HASHes
>           "delete", "each", "exists", "keys", "values"
>

each, keys, and values work on both arrays and hashes. As does exists and
delete, technically.

-Dan

Thread Previous | 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