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

Re: Range idea

Thread Previous | Thread Next
Father Chrysostomos
January 23, 2014 21:21
Re: Range idea
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About