* This one time, at band camp, henry said:
> Dear List:
>    
>              I need to 
>    use perl-script --> call c program --> return values to perl-script -->call c 
>program
>                                         A                                        B   
>                              C  
>              At stage B , perl will get those return-values from c-programs for next 
>stage(C).
> -------that's the problem         that I want to consult you,
> 
>             Could someone shed some light on it?
>  or
>             by what keyword could I search internet?
>    

#!/usr/bin/perl

if (system('first-c-program') # Check if first-c-program returns non zero
{
    system('second-c-program') # if it does, run second-c-program
}
else
{
    system('third-c-program') # else run third-c-program
}



Is that what you're after Henry?

Greeno

(Note: this is untested and its been a long week, use at your own risk)
-- 
Greeno <[EMAIL PROTECTED]>
GnuPG Key :  1024D/B5657C8B 
Key fingerprint = 9ED8 59CC C161 B857 462E  51E6 7DFB 465B B565 7C8B

Imagine working in a secure environment and finding the string 
_NSAKEY in the OS binaries without a good explanation
    -Alan Cox 04/05/2001
-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to