Your fellow monks worked quite hard to help you out with this very same question over at this post: Zip code distance search. Please do not add a second post with a slightly different angle on the same question. We can't really give you the best possible help without seeing the whole history of answers and your response to them in one place.

Over there you provided an attempt at Perl code and that was a good thing. If you are still confused, add a reply to your original post explaining (a) what was helpful so far and (b) what you still aren't sure about. Doing so will keep the original post on the Recently Active Threads list for another day. If you think posting the original PHP code will help, add it to your replay to your original post over there

To further understand why this is a bad idea, please see this post by another user today who double posted a slightly different take on the same question.

Best, beth


In reply to Re: php to perl by ELISHEVA
in thread php to perl by pglinx

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.