Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Perl oddities

by Corion (Patriarch)
on Mar 01, 2005 at 11:35 UTC ( [id://435363]=note: print w/replies, xml ) Need Help??


in reply to Re: Perl oddities
in thread Perl oddities

See Fatal, which does exactly that, override open (or whatever else you want) to die if it fails. The scheme falls down for system, as system returns a false value on success ...

Replies are listed 'Best First'.
Re^3: Perl oddities
by TimToady (Parson) on Mar 01, 2005 at 18:34 UTC
    Fatal will be a built-in pragma in Perl 6, and any code which uses the fail keyword will fail in the way specified by the caller, which might be to throw a fatal exception, or to return an unthrown exception that is behaves like undef, or to cause some form of backtracking, in the case of the pattern matching engine.

    I'll talk about system elsewhere.

Re^3: Perl oddities
by Joost (Canon) on Mar 01, 2005 at 13:14 UTC
      Don't consider - use it. It will make your life a whole lot simpler. I know it has mine :-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-19 09:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found