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

Re: Range idea

Thread Previous | Thread Next
From:
Father Chrysostomos
Date:
January 23, 2014 21:21
Subject:
Re: Range idea
Message ID:
20140123212153.25600.qmail@lists-nntp.develooper.com
Abigail wrote:
> die? warn, and continuing with @range empty? I don't really see the
> problem of 'lastindex' only making sense in specific environments.
> 'next', 'last', 'redo' don't make sense outside of a loop, and Perl
> just dies when encountering them outside of a loop. If such a 'lastindex'
> (or whatever syntax is used) would die when used outside of an indexing
> operation, what is the loss?

The real blocker to that approach is that the indices are evaluated
before the list.


Thread Previous | Thread Next


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