I've got a feeling that I'm almost there, but I'm still missing something... Take a look how my code looks right now:
@sorted = sort {uc($a) cmp uc($b)} @results;
foreach $sorted (@sorted){
($field_1,$field_2,$field_3) = split(/\|/,$sorted);
print<<feach;
<tr>
<td bgcolor="#C0C0C0" colspan="2"><font face="Verdana, Arial, Helv
+etica, sans-serif" size="2"><a href="/relatorios/$user/$razao_social.
+data" target="_top">$razao_social</a></font></td>
</tr>
feach
}
It ALMOST worked, since I've got a result sorted like this (notice that I'm putting here the first letter of each field):
C
J
L
B
C
L
M
P
Q
R
S
T
Can you tell what I'm doing wrong?
Tx in advance,
Er Galvão Abbott
a.k.a. Lobo, DaWolf
Webdeveloper
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.