$ret .= <div style="background-color: orange">$line</div>\n;
That's your bareword right there. Try something like this instead:
$ret .= qq#<div style="background-color: orange">$line</div>\n#;
And before you go too far down this whole route please consider CSS for styling and maybe even a simple templating system. You'll be glad you did (on both counts).
In reply to Re: Conditional color formatting ---- HTML
by hippo
in thread Conditional color formatting ---- HTML
by newperlbie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |