Thanks for the fast replies everyone!
Yeah I realise this METAR thing has been done many times and in many ways. I am merely using it as a means to test my knowledge of regular expressions.
I have no real use for a METAR processor script but the huge amount of freely available data combined with the significant complexity of the protocol make it an ideal case study for learning the ropes, as it were.
I'm interested in the links that you kindly posted though. I think I'll probably finish my "hard way" METAR script first and then I'll try it again using a proper parser. That way I think I'll get the benefit from both coding the logic manually and also taking a more high level approach.
Thanks again.
Wosser.
I'm so glad I found perlmonks.org, this place is a far more substantial knowledge base than anywhere else I've found.
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.