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

Re: postfix dereference syntax

Thread Previous | Thread Next
From:
David Nicol
Date:
August 12, 2013 21:13
Subject:
Re: postfix dereference syntax
Message ID:
CAFwScO_1MoyHg0xFgGAUhE=fvh5ODCVCZRpKzo1QVu5VyA+S9w@mail.gmail.com
On Mon, Aug 12, 2013 at 3:33 PM, Father Chrysostomos <sprout@cpan.org> wrote:
> I wrote:
>> And ->$& of course, both with \ and as a sub call.
>
> Grrr.  I meant ->&* .
>

what's the advantage of $coderef->&* over $coderef->() ??? I thought
coderefs already had a postfix syntax. Is it supposed to be another
way to spell C<goto &$coderef> ?

Also, how about postfix reference operator?

     my $scalar;
     my $reference = $scalar -> \*; # instead of \$scalar





-- 
You've got to wiggle before you can crawl

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