<DIV>Joseph,</DIV>
<DIV>&nbsp;</DIV>
<DIV>If I'm not wrong, the following style has been changed since 4.0. But I didn't use perl mapscript for a long time, so please re-check in the 3rd line's syntax. (actually I use PHPMapscript and translate it to perl for you)</DIV>
<DIV>&nbsp;</DIV>
<DIV>my $class = new mapscript::classObj($layerObj);<BR>my $style=new mapscript::styleObj($class);<BR>$style-&gt;{color}-&gt;setRGB(10,0,255);<BR></DIV>
<DIV><BR>HTH</DIV>
<DIV>Krung.</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR><B><I>Joseph Norris &lt;sirronj@PACBELL.NET&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">I am building a class via perl - I have the expression part set up but the<BR>color deal is giving me a problem:<BR><BR>my $class = new mapscript::classObj($layerObj);<BR>$class-&gt;setExpression("/$zip_expression/");<BR>$class-&gt;{color} = '102 0 255';<BR><BR>I know I am not doing this right because I am getting the following error:<BR><BR>Can't locate auto/mapscript/classObj/swig_color_.al<BR><BR>Help - thanks.<BR><BR><BR>#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr<BR>$_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,-<BR>68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90);<BR></BLOCKQUOTE><p>
                <hr size=1>Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/mail_us/taglines/mobile/*http://mobile.yahoo.com/maildemo">Take Yahoo! Mail with you!</a> Get it on your mobile phone.