Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: readline error behavior

by welchavw (Pilgrim)
on Nov 03, 2003 at 16:46 UTC ( [id://304149]=note: print w/replies, xml ) Need Help??


in reply to readline error behavior

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://304149]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-23 17:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found