At 12:01 AM 8/20/00 -0400, Bryan C. Warnock wrote:
>On Sat, 19 Aug 2000, Peter Scott wrote:
> > -io guys, I've been looking through your archives at the line discipline
> > stuff and I don't see this there: what do you think?  The proposal is 
> for a
> > mode that specifies a maximum number of characters to be returned by a
> > getline (<>) so that paranoid programs can set it to a large number to
> > prevent them taking up gobs of memory if someone throws zillions of
> > characters sans newline at the input.  The question of what to do with the
> > part not read (throw away, or return on next read) could be another mode
> > switch perhaps?  I'm new to the -io list, I'm not sure if this makes sense.
>
>I know I mentioned something similar to this when touching on line
>disciplines before the line discipline discussion actually started.
>Look at "Re: RFC 69 (v3) Standardize input record separator (for"
>(http://www.mail-archive.com/perl6-language-io@perl.org/msg00069.html)
>and see if :block is the same as what you're talking about.

I read that before I made my posting; it looked to me that :block was 
specifying a fixed-length read independent of line terminators, i.e., same 
behavior as $/ = \1024.

>(And I'll add, I don't think the rest of the line should be thrown
>away.)

No harm in making the choice another mode switch, no?

--
Peter Scott
Pacific Systems Design Technologies

Reply via email to