in reply to Re^3: remove a blank line after a string
in thread remove a blank line after a string
or, to use the splice and short-circuiting:@$msg = grep {(m/\QContent-Transfer-Encoding: 7bit\E/i .. /^\s*$/) ne +'2E0'} @$msg;
my $i = 0; for (@$msg) { if ((/\QContent-Transfer-Encoding: 7bit\E/ .. /^\s*$/) eq '2E0') { splice(@$msg, $i, 1); last; } ++$i; }
|
|---|