use warnings; use strict; for my $cmd(qw(ls ipconfig)){ system("$cmd"); }