OfficeLinebacker has asked for the wisdom of the Perl Monks concerning the following question:
@emaillist=split(/,/,$ARGV[1]); my $distlist; foreach $k (@emaillist){ $distlist="$distlist $k\@myorg.mydomain"; }
Edit: Looks like some people do not like this node. Can you please explain why this question or presentation is not appropriate?
Also thanks for the replies. I have never used map(). Will look into that.
Edit #2: The approach above also has the shortcoming of inserting a space in front of the first address, which in my particular case caused a VERY unpleasant side effect. Just FYI for anyone else who may stumble upon this later.
|
|---|