> -----Original Message-----
> From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 26, 2004 12:10 PM
> To: Paul Kraus
> Cc: 'Perl Beginners'
> Subject: Re: hash of hash of array slices
> 
> On Jan 26, Paul Kraus said:
> 
> >foreach ( @{($hash{$key1}{$key2})[9..1]} )
> 
> It should be:
> 
>   foreach ( @{ $hash{$key1}{$key2} }[1 .. 10] ) { ... }
> 
> based on your other email.


This worked fine. However I was under the impression that any time you
worked with a slice that you had to surround the array in parenthesis.

When else does this not apply?



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to