[LA.pm] alternating...

Robert Spier rspier at pobox.com
Sat Jun 25 22:20:17 PDT 2005


>     print '<TR><TD BGCOLOR="',
>       $|-- ? '#93c0c0' : '#cae8ff',
>         "<A HREF='$line'>$line</A></TD></TR>\n\n";
> }
> Oh, wait.  This isn't the fwp mailing list.  Never mind.  ;-)

Cute, although abuse of $| considered dangerous.

Of course, the _right_ way to do this is with CSS3.
http://www.w3.org/TR/2001/CR-css3-selectors-20011113/#nth-child-pseudo


More information about the Losangeles-pm mailing list