Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

(tye)Re2: use Fatal;

by tye (Sage)
on Jan 10, 2002 at 05:36 UTC ( #137649=note: print w/ replies, xml ) Need Help??

in reply to Re: (tye)Re: use Fatal;
in thread use Fatal;

That is what *CORE::GLOBAL::open= coderef is for. And if it only makes things fatal when in a void context, then this shouldn't be much of a problem for module code that doesn't know whether the user might use this or not.

You can write code that would break in such cases but I don't consider such code to be reasonable so I don't mind. (:

open( FILE, "< this.txt" ); warn "Can't read this.txt: $!\n" unless defined fileno FILE;

        - tye (but my friends call me "Tye")

Comment on (tye)Re2: use Fatal;
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (13)
As of 2015-12-01 19:58 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (26 votes), past polls