Hi
,
I've got a script that searches a database and gives a result, something like this:
porto|1|38.783333|-9.2|PO|14||Porto|
porto|1|41.15|-8.616667|PO|17||Porto|
porto|1|39.066667|-9.033333|PO|14||Porto|
porto|1|42.016667|-8.45|PO|20||Porto|
porto|1|39.866667|-8|PO|06||Porto|
Also I have an array %codes in the form "PO14","Lisboa", "PO17","Porto", etc
When I join PO to 14 for example and go to $codes{"PO14} it matches - it gives me Lisbon region; but it will ignore the PO17; only the PO20 will be read and will ignore the PO06...
Does anyone has any idea why?
Kind regards, Kepler
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.