> -----Original Message-----
> From: oryann9 [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 08, 2007 13:44
> To: Perl List
> Subject: slices
> 
> Trying to understand from perldoc perldata the diff
> between these 3 CLIs and why the 2nd CLI has no
> elements?
> 
> $ perl -le 'use Data::Dumper; @c = (0,1)[1]; print
> Dumper([EMAIL PROTECTED]);'
> $VAR1 = [
>           1
>         ];
> 
> $ perl -le 'use Data::Dumper; @c = (0,1)[2]; print
        Stating to pull slice [2] when you only have [0] and [1] as
defined as defined between (). If you wanted slice [2] then would have
needed (0,1,2) at least to get [2].

Wags ;)

> Dumper([EMAIL PROTECTED]);'
> $VAR1 = [];
> 
> 
> $ perl -le 'use Data::Dumper; @c = (0,1)[0]; print
> Dumper([EMAIL PROTECTED]);'
> $VAR1 = [
>           0
>         ];
> 
> 
>        
> ______________________________________________________________
> ______________________
> Building a website is a piece of cake. Yahoo! Small Business 
> gives you all the tools to get online.
> http://smallbusiness.yahoo.com/webhosting 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> http://learn.perl.org/
> 
> 
> 

**********************************************************************
This message contains information that is confidential and proprietary to FedEx 
Freight or its affiliates.  It is intended only for the recipient named and for 
the express  purpose(s) described therein.  Any other use is prohibited.
**********************************************************************


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


Reply via email to