Inside the argument list for attach
, no semicolons ;
may occur. Use a comma ,
to seperate the arguments:
for my $href (@$aref) {
$msg->attach(
Type => 'text',
Data => "productype: $href->{prodtype} product: $href->{product} qbs_id:$href->{qbs_id}\n",
);
}
A trailing comma may also be omitted, but I consider that bad style.