Link to home
Start Free TrialLog in
Avatar of jhughes4
jhughes4

asked on

How to return from Perl

I have an enterprise scheduler that's calling a Perl script and they are saying that they need a return code rather than the perl script printing out the results.  I tried to use return, but got an error that says "can't return outside a subroutine".  How do I return from the main in perl?  thanks
Avatar of ozo
ozo
Flag of United States of America image

perldoc -f exit
ASKER CERTIFIED SOLUTION
Avatar of Adam314
Adam314

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Did you read the documentation I referenced?
Avatar of Adam314
Adam314

Sorry ozo... I skipped over your comment when I made my post.