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

Re: postfix dereference docs

Thread Previous | Thread Next
From:
D Perrett
Date:
October 29, 2013 19:14
Subject:
Re: postfix dereference docs
Message ID:
CABrou+k12bM3OmoqVZrKh_EAz0oiqV2CbYK4wLXbmbjqJvFTAw@mail.gmail.com
> Postfix dereference should work in all circumstances where block
> (circumfix) dereference worked, and should be entirely equivalent.

I noticed that circumfix $#{...} doesn't have a postfix equivalent.
Shouldn't it have one?

(Apologies if this has been discussed I've searched for, but can't
find anyone discussing it on this list)

Daniel

On 6 October 2013 14:18, Father Chrysostomos <sprout@cpan.org> wrote:
> Ricardo Signes wrote:
>> I have rebased, merged, smoked, and pushed.  Thank you very much for your work
>> on this.  I really am very excited about it!
>
> Thank you.
>
> Two more things:
>
> • perldelta still says $gref->&*;
> • It implies that hash slices (with @) do not interpolate.
>
> And a minor quibble:
>
> Postfix dereference should work in all circumstances where block
> (circumfix) dereference worked, and should be entirely equivalent.
>
> (from perlref)
>
> In ${ my $x } the $x does not outlive the block.  (my $x)->$* should
> work differently, though I don’t remember whether I tested that.
>

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