Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: function or something

by mrbbking (Hermit)
on Jul 20, 2006 at 16:03 UTC ( #562621=note: print w/replies, xml ) Need Help??


in reply to function or something

I'm not sure if you want your *program* to return a value, or you want the *subroutine* to return a value. If the program, do
someFunction() or exit(1);
If the function, you'll have to catch the value the sub returns and do your thing with it.
my $ret = someFunction(); if( $ret ){ do_your_thing(); maybe_return_here(); }
/me needs a new .sig

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://562621]
help
Chatterbox?
[holli]: I just ordered a pair of deans connectors to replace them. probably propriatary

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2017-11-19 14:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (281 votes). Check out past polls.

    Notices?