in reply to I seek sendmail wisdome
Second, why can't you put an if statement there?
Third, you don't need an if inside body, you can put it outside:print <<"EOT"; ... @{[$foo ?"Blah blah bla" : "Other blah; more other blah"]} ... EOT
my $headers = $foo ? "Blah blah bla" : "Other blah; more other blah"; print <<"EOT"; ... $headers ... EOT
|
|---|