Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

(Ovid) Re: use Fatal;

by Ovid (Cardinal)
on Jan 10, 2002 at 04:28 UTC ( #137632=note: print w/replies, xml ) Need Help??

in reply to use Fatal;

Update: D'oh! I wonder why "perldoc -f Fatal" didn't come up with anything :) Yes, that's a joke, but I did add the -f in there when I tried it! How embarrassing that such a useful module is part of the standard distribution and I didn't know that. Sigh... Just focus on the Perl 6 comments, will ya? :)

cLive ;-) wrote:

Browsing through the standard Pel modules, I came across this little number. Considering how much we push strict and warnings, wouldn't it be a good idea to add this module to the list?

It kind of sounds like you're saying that Fatal is part of the standard distribution, but I don't think you meant that. I suppose the reason it's not mentioned more often is because many would likely balk at installing a module to check for something that they do anyway.

I am aware that this has been brought up in relation to Perl 6. Specifically, it sounds like Perl 6 might have a use strict 'system'; pragma which would be equivalent to the following:

use Fatal qw/:void open close/;

The above snippet will throw an exception if you try to open or close a filehandle without explicitly checking the return type. I'd like to see that, but I have no idea whether or not it will actually be implemented.


Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

Replies are listed 'Best First'.
(cLive ;-) Re: (Ovid) Re: use Fatal;
by cLive ;-) (Prior) on Jan 10, 2002 at 04:38 UTC
Re: (Ovid) Re: use Fatal;
by mr_mischief (Monsignor) on Jan 10, 2002 at 08:11 UTC
    Actually, it is in the standard distribution I downloaded and compiled today. After ungzipping and untarring stable.tar.gz in the /root directory, slocate finds this:
    ...which would seem to suggest it's official enough to count on until the word comes that it's no longer there.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://137632]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2017-11-22 03:05 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (314 votes). Check out past polls.