It seems to me from previous experimentation that any lines in the body text starting with 'From ' will already be quoted with a > character, so that they will not cause the test I used to pass and will not therefore create a new array element.my @mails; while (<>) { if (/^From /) { $mails[$#mails + 1] = $_; } else { $mails[$#mails] .= $_; } }
In reply to Re: stream parsing an mbox file
by repson
in thread stream parsing an mbox file
by johnfoobar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |