Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re^3: Perl function calls.

by hardburn (Abbot)
on Jul 07, 2014 at 17:34 UTC ( #1092615=note: print w/replies, xml ) Need Help??

in reply to Re^2: Perl function calls.
in thread Perl function calls.

Well, if it didn't return failure, then I'm not sure how you can say your error code didn't work. If there's no failure for it to catch, then of course it won't run.

As it is, your error code should work fine if the function is expected to return an error string on failure. Since the function doesn't return an error string in any branch, the error will never be picked up.

"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2019-10-18 07:21 GMT
Find Nodes?
    Voting Booth?