Bucchi has asked for the wisdom of the Perl Monks concerning the following question:
Here -h and -p are my prg options. Now is this correct?? Please help.... Thanks for your help.eval { require "run_gql.pl -h -p "}; if ($? == -1) { print "Failed to execute: $!\n"; } elsif ($? & 127) { printf "\nChild died with signal %d, %s coredump\n", ($? & 127), ($? & 128) ? 'with' : 'without'; } else { printf "\nChild exited with value %d\n", $? >> 8; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to call a perl prg with options from within another ?
by Corion (Patriarch) on Oct 27, 2006 at 09:19 UTC | |
|
Re: How to call a perl prg with options from within another ?
by Smaug (Pilgrim) on Oct 27, 2006 at 11:22 UTC | |
|
Re: How to call a perl prg with options from within another ?
by davorg (Chancellor) on Oct 27, 2006 at 11:29 UTC | |
|
Re: How to call a perl prg with options from within another ?
by bart (Canon) on Oct 28, 2006 at 09:07 UTC |