in reply to need both from system-call
xxx.pl:#!/usr/bin/perl print"STATUS:$?\n"; $result=`./xxx.pl`; $status=$?; print "RES:$result\nSTA:$status\n";
This results in:#!/usr/bin/perl print"Wonderful world on Friday\n"; exit 200;
Why ???STATUS:0 RES:Wonderful world on Friday STA:25600
----------------------------------- --the good, the bad and the physi-- -----------------------------------
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: need both from system-call
by birdbrane (Chaplain) on Apr 27, 2001 at 16:20 UTC | |
|
Re: Re: need both from system-call
by hdp (Beadle) on Apr 27, 2001 at 16:20 UTC |