Im trying to split a scalar containing multiple MIME header lines, that might be folded, into a Array that should hold one complete header per element
I tried with the following:
@fixedheaders = split(/\n\S/, $fixedmsgheader);But that eats the first char in header lines. I need to split the header line so it takes folded header lines in consideration and NOT splitting a folded header line in the middle.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |