in reply to Executing an application in Perl/CGI
system('some_command') && die 'cannot execute some_command'; # or system 'some_command' and die 'cannot execute some_command';
Update: Fixed precedence and added another example with and. Thanks, kyle and blazar :-)
Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Executing an application in Perl/CGI
by blazar (Canon) on May 22, 2007 at 19:34 UTC | |
by Anonymous Monk on May 22, 2007 at 19:38 UTC | |
by blazar (Canon) on May 22, 2007 at 19:42 UTC | |
|
Re^2: Executing an application in Perl/CGI
by kyle (Abbot) on May 22, 2007 at 19:33 UTC |