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

Re: postfix dereference syntax

Thread Previous | Thread Next
From:
Eric Brine
Date:
August 20, 2013 17:34
Subject:
Re: postfix dereference syntax
Message ID:
CALJW-qHg0EeicXo9E3VTJagM62E8cJANf30Kv2H-V3UOPqeETg@mail.gmail.com
On Thu, Aug 15, 2013 at 1:04 PM, demerphq <demerphq@gmail.com> wrote:

> My understanding of the Perl5 sigils is that they are meant to denote
> the type of result that will be _returned_*.
>

$ can return a list of scalars in addition to a scalar.
@ can return an array in addition to a list of scalars
% can return a hash in addition to a list of scalars
& can return a scalar
& can return a list of scalars
* returns a scalar

Seems to me there are already far more exceptions to that rule than they
are adherents.

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