Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Perl oddities

by Corion (Pope)
on Mar 01, 2005 at 11:35 UTC ( #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 ...


Comment on Re^2: Perl oddities
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 :-)
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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (12)
As of 2014-12-26 17:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (173 votes), past polls