use strict; use warnings; my $cmd = 'some_command'; my @args = qw(arg1 arg2 arg3 ... argN); system("$cmd $_) foreach @args;