> -----Original Message-----
> From: Dean Theophilou [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 03, 2001 5:07 PM
> To: Perl_beginner (E-mail)
> Subject: Returning a text string
> 
> 
> Hello:
> 
>       I would like to exit a perl program such that upon 
> exiting, it will return a
> text string to the calling program.  How would I go about doing this?
> 
> exit $SomeTextString;
> 
> doesn't work, since "exit" evaluates the above scalar as an 
> integer.  Thank you
> in advance.

Normally this kind of thing is handled simply by writing to STDOUT
or STDERR and having the "calling" program set up a pipe to read
one or both of those handles.

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

Reply via email to