On Thu, 2004-08-19 at 12:17 -0400, Matt Diephouse wrote:
> At this point, you may as well use C<.records> (think C<$/> -- record
> separator):
>
> for $foo.records { ... }
>
> Then it'd be a small step to allow:
>
> for $foo.records :sep"," { ... }
> --or--
> for $foo.records(",") { ... }
>
I'm not particular to any of the verbs used yet, but maybe that's
because I don't think of the <> as a general iterator, but more of a
gobbler-type creature (and formerly a globber, too). Could we try:
for $foo.fetch { ... } #or
for $foo.grab { ... } #or
for $foo.eat { ... }
And to replace $/ we could have something like:
for $foo.fetch :upto(",") { ... } #or
for $foo.fetch :until(",") { ... }
P.