There's more than one way to do things | |
PerlMonks |
Re: readline error behaviorby welchavw (Pilgrim) |
on Nov 03, 2003 at 16:46 UTC ( [id://304149]=note: print w/replies, xml ) | Need Help?? |
Leo, The docs do eventually indicate that getline behaves as readline. Some of the relevant documentation regarding readline follows (you should definitely read all the docs as I'm not going to touch on other aspects of the interface, such as context-sensitive-return requirements). If readline encounters an operating system error, $! will be set with the corresponding error message. Thus, to overload getline, I believe you should apply the same semantics. ,welchavw
In Section
Seekers of Perl Wisdom
|
|