develooper Front page | perl.golf | Postings from July 2002

Re: more minigolf

Thread Previous | Thread Next
From:
Chris Dolan
Date:
July 11, 2002 11:01
Subject:
Re: more minigolf
Message ID:
3D2DC753.6050300@clotho.com
Phil Carmody wrote:
> 
> What is 
>  @{[ ... ]} 
> ?
> 
> It's not in perlsyn, perlop, perlvar ...
> 

It's like this:

$ref = [$w=1,map$w*=$_/--$;,-pop..-1];
print "@$ref\n";

only with an anonymous array reference and dereference.  I keep
forgetting about that one, too.  It would have helped most of my
solutions...

Chris


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