odrevet has asked for the wisdom of the Perl Monks concerning the following question:
instead of$cl='color:'.$c_diff<=0?$color_good:$color_bad.';';
$cl = 'color:'; $cl .= $c_diff<=0?$color_good:$color_bad; $cl .= ';';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: concat string with ternary operator
by choroba (Cardinal) on Jul 02, 2011 at 11:35 UTC | |
by odrevet (Acolyte) on Jul 02, 2011 at 12:55 UTC | |
|
Re: concat string with ternary operator
by BrowserUk (Patriarch) on Jul 02, 2011 at 14:03 UTC | |
|
Re: concat string with ternary operator
by AnomalousMonk (Archbishop) on Jul 02, 2011 at 13:55 UTC |