A quick look at 5:00 am (where I am from) I would make a change in you if statement from:
if ($attributes[0] =~m/Di*/){To:
if ($attributes[0] =~m/Di*/i){
for case insensitvity.
one thing you can do to make it read a little clearer is to try this:
print <<EODUMP;
<TABLE WIDTH=65% BORDER=2 ALIGN=CENTER>
<TR BGCOLOR=#9999FF><B>Anuncio número $n del $attributes[0]</B></T
+R>
<TR>De <B>$attributes[1] $attributes[2]</B> que desea vender <FONT
+ COLOR=#003366><B>$attributes[6] a $attributes[7] €.</B></FONT></TR>
<TR>Os podéis poner en contacto con el/ella en los teléfonos <B><F
+ONT COLOR=#003366>$attributes[8] // $attributes[9]</B></FONT></TR>
<TR>Según el horario que nos idica: <B><FONT COLOR=#003366>$attrib
+utes[5]</B></FONT></TR>
<TR>Su e-Mail es: <B>$attributes[10]</B> y su URL: <B>$attributes[
+11]</B></TR>
<TR BGCOLOR=#FF9999><B>ESTOS SON SUS COMENTARIOS:</B>
<BR><FONT COLOR=#333333><I><B>$attributes[12]</I></B></TR></FON
+T>
</TABLE>
<BR><BR>
EODUMP
By printing like this you can format your HTML a little more sanely.
--
BigJoeLearn patience, you must.
Young PerlMonk, craves Not these things.
Use the source Luke.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.