in reply to Re^3: Using System command
in thread Using System command
What is the following code supposed to mean?
system($cmd&&$cmd1);
Maybe you wanted something like:
my $real_command = "$cmd && $cmd1"; warn "Running [$real_command]"; system($real_command) == 0 or die "Couldn't launch [$real_command]: $? / $!";
Observe the difference between
my $real_command = "$cmd && $cmd1"; print $real_command; # and my $real_command = $cmd && $cmd1; print $real_command;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Using System command
by 9mohit2 (Sexton) on Oct 05, 2016 at 05:46 UTC |