foreach my $MsgLine (@$MsgContent) { ... }