Re: Treating filehandles like strings

2000-08-07 Thread Jon Ericson
[Reply to perl6-language-io as this is an I/O related.] Michael Mathews wrote: > > Here's a thought. Wouldn't this be cool (see below)? The idea is that in > Perl 6 you should be able to read from a file handle one character or one > line at a time (just like you can in Perl 5) BUT if you just g

Re: Treating filehandles like strings

2000-08-07 Thread Peter Scott
Just a quick tangential comment: it should be possible to specify the maximum number of characters that a readline() will do on a filehandle. I couldn't find this in IO::Handle which seems to be where the user-defined line disciplines are inheriting their methods? Anyway, obvious application

Re: Treating filehandles like strings

2000-08-07 Thread Damian Conway
...and as for matching regexen against streams, I have a more general proposal for matching against subroutines that should allow for that as a special case. Damian

Re: Treating filehandles like strings

2000-08-07 Thread Johan Vromans
On Mon, Aug 07, 2000 at 12:16:22AM -0400, Michael Mathews wrote: > Here's a thought. Wouldn't this be cool (see below)? The idea is that in > Perl 6 you should be able to read from a file handle one character or one > line at a time (just like you can in Perl 5) BUT if you just go ahead and > use