develooper Front page | perl.perl5.porters | Postings from January 2014

Re: Range idea

Thread Previous
From:
Xiao Yafeng
Date:
January 23, 2014 13:48
Subject:
Re: Range idea
Message ID:
CABPUXgBOjR8Fk0+dwmjOD-pPhfp49dpNx_vyyuGFLgPuALVkXA@mail.gmail.com
yeah, it's the same problem, the right expression should be
@foo[3..$#foo].  but I think a * could express a lazy list. In above
case, it automatically point to the end of array. it might be a "good"
design. ;)

On Thu, Jan 23, 2014 at 9:21 PM, Zefram <zefram@fysh.org> wrote:
> Xiao Yafeng wrote:
>>how about @foo[3..*] ?
>
> Same problem.  All you've changed is the spelling.
>
> -zefram

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About