------------------------------------------------
On Thu, 17 Jul 2003 17:29:49 -0400, "HENRY,MARK (HP-Roseville,ex1)" <[EMAIL 
PROTECTED]> wrote:

> Hi All,
> 
> Anyone know if it's possible for the return/exit value of a script, in the
> event of success, to be something other than 0?
> 
> I want to call, from a shell script, a perl script that determines a certain
> record ID from a database.  When the ID has been obtained, the script would
> exit, and the calling shell script would receive the returned value.
> 
> The 'return' command doesn't allow this - I've thought of setting an env
> variable - not sure how to export it from perl so the environment sees it.
> Would like to get plan A to work first though..
> 

perldoc -f exit
perldoc -f die

Should provide the answers.  Essentially you can call either with any value you want 
(though there may be a limitation on the size depending on the OS, shell, etc.).

http://danconia.org

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to