>>>>> "PS" == Peter Scott <[EMAIL PROTECTED]> writes:
PS> At 08:50 PM 8/19/00 -0400, [EMAIL PROTECTED] wrote:
>> I do believe thbis is one of the reasons sysread is there
>>
>> perldoc -f sysread
PS> Au contraire; sysread reads exactly the number of characters
PS> requested; what I want is a way for programs that do <FH> all over
PS> the place to be protected if someone throws a gargantuan number of
PS> characters at FH without a newline. The $/ = ref_to_int feature
PS> is exactly the kind of feature I was expecting to do this and I
PS> was disappointed that it didn't.
and what happens to the partial line left in the input buffer? does it
get read in the next time you call <> or is it thrown out? the semantics
of <> in line mode is it reads a whole line. leaving the partial line to
be read next time is bad. throwing out the leftover text is also bad.
better to have <> work as now and the code just truncates the line with
substr.
uri
--
Uri Guttman --------- [EMAIL PROTECTED] ---------- http://www.sysarch.com
SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting
The Perl Books Page ----------- http://www.sysarch.com/cgi-bin/perl_books
The Best Search Engine on the Net ---------- http://www.northernlight.com