Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: exit calling subroutine

by Zaxo (Archbishop)
on Jan 10, 2008 at 08:31 UTC ( #661570=note: print w/replies, xml ) Need Help??


in reply to exit calling subroutine

By convention, perl uses an undefined return as you have to signal an error. You need to test that return value to make the convention effective. partial_success() if not defined do_stuff();

It seems that your end logic makes the return value irrelevant. Setting $ERRNO or $! is always useful, since even the shell on end will honor and report that value.

After Compline,
Zaxo

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://661570]
help
Chatterbox?
choroba tried to solve Week of Code 37
[choroba]: I was albe to solve the first two problems, plus hack the 5th
[choroba]: No idea how to solve the rest.

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2018-04-21 19:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?