If you think the formatting of $message is not what you want it to be, what steps have you taken to confirm this?
Maybe printing $message might show you the content?
In reply to Re^3: extract pattern from large blob of text
by Corion
in thread extract pattern from large blob of text
by littleperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |