Re: Custom iterators

2001-10-02 Thread Bart Lateur
On Tue, 25 Sep 2001 12:42:43 -0400, Michael G Schwern wrote: >Or how about character by character? > >File.each_byte($filename) { >print >} > >Backwards? > >File.read_backwards($filename) { >print >} [in an earlier post:] >foreach_line { print } 'some/file';

Re: Custom iterators

2001-10-02 Thread Michael G Schwern
On Wed, Oct 03, 2001 at 02:26:47AM +0200, Bart Lateur wrote: > >foreach_line { print } 'some/file'; > > You really like underscores, do you? If all you got out of that thread was "Schwern likes underscores" then I explained iterators really, really, really badly. -- Michael G. Schwern