splice(@fwlog, 15); # shorten array to max 15 elems foreach (@fwlog) { s/192\.168\.2\.3/x.x.x.x/; # dots should be escaped } # ... later ... print SENDMAIL <