> The current ideas tend to converge around
While reading the current rfc199.2 version I imagined another way
to do this. Instead of adding a new escape, what if we could
fiddle with the looping condition?
Given a grep that works like so:
sub mygrep(&@){
local $index; # must be visible inside filter
my $filter = shift;
my @result;
for($index = $[; $index =< $#_; $index++){
$_ = $_[$index];
&$filter and push @result, $_
};
return @result
};
we could force an early return by altering $index from within &$filter.
I know there has been some discussion of having explicit iterator numbers
within loops, although I can't locate the RFC if there has been one.
Given an explicit iterator attribute inside loops, if that was a lvalue it
could be set to the end of the data, or set back to the beginning for
that matter, to effect a last or a redo.
--
David Nicol 816.235.1187 [EMAIL PROTECTED]
perl -e'map{sleep print$w[rand@w]}@w=<>' ~/nsmail/Inbox