newperlbie has asked for the wisdom of the Perl Monks concerning the following question:
I get this error :while (my $line = <$IN>) { if ( $line =~ /.*MATCH.*/){ #$ret .= "<tr>$line</tr>\n"; ###This is defined separately an +d it works,but the color is overwritten when I write next set of line +s $ret .= <div style="background-color: orange">$line</div>\n; } $ret .= " </tr>\n\n"; } close $IN; return $ret;
Bareword found where operator expected at trynew.pl line 105, near ""
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Conditional color formatting ---- HTML
by talexb (Chancellor) on Aug 22, 2018 at 14:54 UTC | |
|
Re: Conditional color formatting ---- HTML
by hippo (Archbishop) on Aug 22, 2018 at 14:42 UTC | |
by newperlbie (Acolyte) on Aug 24, 2018 at 09:59 UTC | |
|
Re: Conditional color formatting ---- HTML
by LanX (Saint) on Aug 22, 2018 at 14:42 UTC | |
|
Re: Conditional color formatting ---- HTML
by Anonymous Monk on Aug 22, 2018 at 22:54 UTC | |
by Anonymous Monk on Aug 22, 2018 at 22:57 UTC |