[kw-pm] is perl 6 really that different?

Daniel R. Allen da at coder.com
Tue Jul 8 15:09:39 CDT 2003


I don't have the book, but that's one of perl6 changes- arrays and hashes
retain their sigil when they're sliced/diced.

Check earlier in the book- it's probably one of the first things they
mention. :-)

-D

http://coder.com/ - Prescient Code Solutions - (519) 575-3733 da at coder.com

On Tue, 8 Jul 2003, Robert P. J. Day wrote:

>
>   just skimming the aforementioned o'reilly perl 6 book,
> and i'm confused about its description of how to index
> into an array.
>
>   on p 26 (if you happen to have the book), we have the
> example:
>
>   @array = ("Zaphod", "Ford", "Trillian") ;
>   $second_element = @array[1] ;			??????
>
> since when?  i thought you'd write that second statement as
>   ... $array[1] ;
>
>   am i just hopelessly confused?  it's been a long day,
> i'm tired and maybe i'm just not thinking clearly.
>
> rday
>
> _______________________________________________
> kw-pm mailing list
> kw-pm at mail.pm.org
> http://mail.pm.org/mailman/listinfo/kw-pm
>




More information about the kw-pm mailing list