[Date Prev][Date Next][Thread Prev][Thread Next]
[Search]
[Date Index]
[Thread Index]
Re: [MacPerl] MPW Perl exit status
- To: mac-perl@iis.ee.ethz.ch
- Subject: Re: [MacPerl] MPW Perl exit status
- From: Matthias Ulrich Neeracher <neeri@iis.ee.ethz.ch>
- Date: Sat, 28 Feb 1998 20:08:01 +0100
- In-Reply-To: Your message of Sat, 28 Feb 1998 11:39:19 -0700.
"Douglas P. McNutt" <dmcnutt@macnauchtan.com> writes:
>>On 2/26 Matthias wrote:
>>> *if* you execute the "exit()" command, the value you pass for exit will
>>> be returned. If you don't have an exit command, exit(0) is assumed.
>>
>>On 2/26 paul.b.patton@hbc.honeywell.com wrote:
>>This doesn't work for me. Example ...
>
>It works OK for me.
For me, too.
>But...
> exit("Hello world");
>yields a status of zero. It is an artifact of the way MPW works.
No. Perl exit takes a numeric parameter, so the string is converted to a number
(0) right away.
Matthias
-----
Matthias Neeracher <neeri@iis.ee.ethz.ch> http://www.iis.ee.ethz.ch/~neeri
"One fine day in my odd past..." -- Pixies, _Planet of Sound_
***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch