[MacPerl] setting unix $status from perl script

2002-08-18 Thread Louis Pouzin
Hi, When I call a perl script from within a unix shell script, I'd like the perl script to set $status to some value for the shell script to use on return. I have tried a number of ways to no avail. $status is always 0 in the shell script when the perl script returns. Anyone knows the how-to,

Re: [MacPerl] setting unix $status from perl script

2002-08-18 Thread Chris Nandor
At 12:58 +0200 2002.08.18, Louis Pouzin wrote: >When I call a perl script from within a unix shell script, I'd like the perl >script to set $status to some value for the shell script to use on return. > >I have tried a number of ways to no avail. $status is always 0 in the shell >script when the p

[MacPerl] re: setting unix $status from perl script

2002-08-18 Thread Louis Pouzin
On Sun, 18 Aug 2002 07:47:46 -0400, Chris Nandor wrote: >Try exit($status); that should give you what you want, I think. It really does. Super. Thanks Chris.