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
perldoc -f exit
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Did you read the documentation I referenced?
Sorry ozo... I skipped over your comment when I made my post.