In reply to your message from the not too distant future: next Saturday AD
Reply-to: [EMAIL PROTECTED]
Return-receipt-to: [EMAIL PROTECTED]
Organization: a) Discordia b) none c) what's that?
Content-Typo: gibberish, charset=ascii-art
Date: Sat, 19 Aug 2000 20:59:26 -0400
From: Jerrad Pierce <belg4mit>
>Au contraire; sysread reads exactly the number of characters requested;
>what I want is a way for programs that do <FH> all over the place to be
>protected if someone throws a gargantuan number of characters at FH without
>a newline. The $/ = ref_to_int feature is exactly the kind of feature I
>was expecting to do this and I was disappointed that it didn't.
True but sysread is non-blocking, so it can be used for this.
Also, in the event you are dealing with certain types of data-streams,
you could set $/ to a character which should occur in the data.
For example if you're reading a potentially large English language stream (w/o
newlines), set $/ to e. It's a pain yes, but that's what you get for having
control ;-)
Just pointing out there are "ways around this"
--
* __ * .
\ | / . . . . . ((_
_____ . . .
-- / \ -- . . . + . . _/\
oooooooooo. | * . . . * / ;M\_ .
.oooooooooooo.oo. . . . . /\ . / :IMM\
..oooooooooooo..oo. Jerrad Pierce /\ / \ / ;IIWMM
..oooooooooo....... 209 North Street + / \ / \ . / ;IIIIWM
...ooooooooo....... Randolph, MA 02368 / \ \ ___/ :;IIIIIWM
....ooo....o....... / \ \ / :: ;;IIIMI
.....ooo......... http://www.pthbb.org / \ \ : :::;IIIM
..ooooooo.... __________________________ || || ::.....::::::
MOTD on Sat Aug 19 2000 12 23:
"Dear Lord, give me chastity and self-restraint... but not yet, O Lord, not yet!"
-Saint Auguistine A.D. 354-430