my $attach = 'mail -s "betreff" [EMAIL=name@firma.com]name@firma.com[/EMAIL]  < /a/b/ergebnis.erg'; system($attach);