my $stringified = ''; { #Go into local slurp mode .. local $/=undef; open FH, "< ./demo.mail"; $stringified = ; close FH; open (CMD_OUT, "/usr/lib/dovecot/deliver -f +test\@somedomain.com -d test\@mailtask.dom $stringified"|); my $test = ; print $test; close CMD_OUT; } #### my $test = `/usr/lib/dovecot/deliver -f +test\@somedomain.com -d test\@mailtask.dom $stringified`;