Why don't you write a sub that does everything you want around each system call? That way you can change your mind later; add logging in one place, etc.
sub run_command { my $command = shift; system($command); if ($?) { my $rc = $? >> 8; die "Failed to run '$command': exit code $rc\n"; } } run_command('vxdg deport oracle'); run_command('something else ...');
In reply to Re: System and a question of style
by steves
in thread System and a question of style
by D.Millin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |