In article <20101018005850.ga2...@playground.mcclains.net>, Mike
McClain <mike.j...@nethere.com> wrote:


> This threw me for a loop for a while since there is no comma in
>     map  { @{ $HoAoA{$_} } [ 0..$#{ $HoAoA{$_} } ]->[1] } keys %HoAoA;
> but I figured out that the range operator '..' returns a list and
> eventually found the defination of list in perldata.

> I was surprised it didn't show up in perlintro nor in the index of
> 'Programming Perl' and 'Learning Perl' calls it a 'List Literal' in
> chapter 3 which leads to confusion.

Actually, we call it the "range operator" in Learning Perl. It just
happens to be in a more general section named "List Literals". Both
"range operator" and '..' have entries in the indices of Learning Perl
and Programming Perl. Perhaps you overlooked something.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to