foreach my $this_server ( @SERVERS ) { my $command = "cp $path/$this_server/etc/passwd ."; warn "Will execute '$command'\n"; # system ($command); # uncomment when ready. }