I have an issue seen from the below piece of code i a program-

In some iteration below code is there in a program>>
<skip>
open OUT, '-|', 'program001.pl', '--field=4,5', '--match=3,80', "--host=$host"
                or die "Couldn't run program001.pl: $!";
       ## if some print of $? & $?>>8 done here...
            if ($?>>8 != 0) { close OUT; print STDERR "FAILED!!\n"; exit 1; }
...
<skip>
When i send wrong argumnts to the program001.pl it prints to STDERR and exit 1.
Now, from the above piece of code for the first time when the program001.pl is 
called and when i print the $? and $?>>8 i can see 0 and 0 respectively and the 
immediate next ones are printed as 256 and 1 and again 256 and 1 and 
again....These are ok. But why the first set is 0,0 ?


Thanks,
ciao


      
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to