#!/usr/bin/perl -w use strict; print my $dist_list = join ' ' => map { "$_\@myorg.mydomain" } split /,/ => $ARGV[1]; print "\n";