in reply to Re^3: remove a blank line after a string
in thread remove a blank line after a string

A range operator would give you an arguably elegant rewrite:
@$msg = grep {(m/\QContent-Transfer-Encoding: 7bit\E/i .. /^\s*$/) ne +'2E0'} @$msg;
or, to use the splice and short-circuiting:
my $i = 0; for (@$msg) { if ((/\QContent-Transfer-Encoding: 7bit\E/ .. /^\s*$/) eq '2E0') { splice(@$msg, $i, 1); last; } ++$i; }

Caution: Contents may have been coded under pressure.