in reply to Conditional color formatting ---- HTML
$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).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Conditional color formatting ---- HTML
by newperlbie (Acolyte) on Aug 24, 2018 at 09:59 UTC |