hash slice from array items

2005-05-25 Thread Carl Franks
Is [EMAIL PROTECTED] the correct way to get a hash slice using elements of an 
array?

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

Cheers,
Carl


Re: hash slice from array items

2005-05-25 Thread Jonathan Scott Duff
On Wed, May 25, 2005 at 05:00:39PM +0100, Carl Franks wrote:
 Is [EMAIL PROTECTED] 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
[EMAIL PROTECTED]


Re: hash slice from array items

2005-05-25 Thread Carl Franks
On 5/25/05, Jonathan Scott Duff [EMAIL PROTECTED] wrote:
 Works just fine for me.  What version of pugs are you using?  Perhaps
 you need to upgrade.

Ok, I've just realised I had missed a '-' to '.' in my perl5 to perl6
conversion,
I was trying to do
[EMAIL PROTECTED] = $obj-list;

I wasn't sure if slicing from an array was implemented, as I couldn't
find any pugs tests for it.

Thanks for your help,
Carl