Re: Maximum length input line
[email protected] (Bryan C . Warnock) Sun, 20 Aug 2000 10:06:36 -0400
| Newsgroups | perl.perl6.language.io |
|---|---|
| Message-ID | <00082010103100.00760@CC789569-A> |
On Sun, 20 Aug 2000, Peter Scott wrote: > 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. Stand-alone, I guess it would be. But I would think that combining it with, say, :text=unix, should give you the behavior you'd want. (Assuming, of course, that this is the way it's going to work.) > > >(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? As in reading the first n columns? :col=1024 Read the first 1024 columns of each line, and if the line happens to be shorter than 1024, so be it? > > -- > Peter Scott > Pacific Systems Design Technologies -- Bryan C. Warnock ([email protected])