in reply to Control Structures
use CGI::Carp qw(fatalsToBrowser); # rest of script my $CMD="some command"; system("$CMD"); ( $? == 0 ) ? print "job success\n" : print "job failure\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Control Structures
by ghenry (Vicar) on Apr 29, 2005 at 13:10 UTC | |
by ghenry (Vicar) on Apr 29, 2005 at 14:21 UTC | |
by tlm (Prior) on Apr 29, 2005 at 15:30 UTC | |
by ghenry (Vicar) on Apr 29, 2005 at 19:27 UTC |