FAQ

On 2014-01-23 13:25, H.Merijn Brand wrote:

Wanting to take all the elements from a list starting at position x to
the end is pretty hard when the list is dynamic, so $#list cannot be
used, nor can index -1
Just for fun:

perl -wE'
    say for qw( a b c d )[2 .. NaN];
'


perl -wE'
    say for qw( a b c d )[2 .. Inf];
'
Range iterator outside integer range at -e line 2.

--
Ruud

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 10 of 22 | next ›
Discussion Overview
groupperl5-porters @
categoriesperl
postedJan 23, '14 at 12:26p
activeJan 23, '14 at 9:21p
posts22
users10
websiteperl.org

People

Translate

site design / logo © 2021 Grokbase