develooper Front page | perl.perl6.language | Postings from May 2005

Re: hash slice from array items

Thread Previous | Thread Next
From:
Jonathan Scott Duff
Date:
May 25, 2005 09:09
Subject:
Re: hash slice from array items
Message ID:
20050525160857.GC1461@pobox.com
On Wed, May 25, 2005 at 05:00:39PM +0100, Carl Franks wrote:
> Is %hash{@array} the correct way to get a hash slice using elements of
> an array?

Yep.

> (it's giving me a compilation error with pugs)

Works just fine for me.  What version of pugs are you using?  Perhaps
you need to upgrade.

-Scott
-- 
Jonathan Scott Duff
duff@pobox.com

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