hello all,
I have are file with a record format that looks like the one below and I would like to process each record into a hash so that I can extract specific data. Being new to record parsing, especially something like this is interesting. Any guidance would be appricated, I have looked at tutorials and FAQs. The first record would be nice to parse for basic information but there are multiple records that end with <EOR> that I really need in the hash.
Thanks
Mike - lowly initiate seeking knowledge and wisdom
Exported by jLog (c)2006 LA3HM, V 3.90.2.7 according to ADIF <adif_ver
+:1>2
<PROGRAMID:4>jLog
For jLog info:
mailto:mail@jlog.org
http://jlog.org/
Proposed ADIF2 Extensions may be included
<eoh>
<qso_date:8:d>20051029 <time_on:6>213400
<call:4>VC3O <band:3>20M <mode:3>SSB <operator:3>VHF
<rst_sent:2>59 <rst_rcvd:2>59
<dxcc:1>1 <stx:1>4 <srx:1>4 <ituz:1>4 <cqz:1>4 <pfx:3>VC3 <con
+t:2>NA <freq:2>14 <qsoComplete:1> <app_jlog_qso_number:4>0001 <a
+pp_jlog_eqsl_qsl_sent:1>Y <app_jlog_eqsl_qsl_rcvd:1>Y <app_jlog_lot
+w_qsl_sent:1>Y <qsl_sent_via:1>E <eor>
<qso_date:8:d>20060701 <time_on:6>183206
<call:5>VE6GG <band:3>20M <mode:3>SSB <operator:3>MWB
<rst_sent:2>59 <rst_rcvd:2>59
<dxcc:1>1 <stx:2>27 <srx:2>AB <ituz:1>2 <cqz:1>4 <contest_id:3>
+RAC <pfx:3>VE6 <cont:2>NA <freq:8>14.16299 <state:2>AB <qsoCompl
+ete:1> <app_jlog_qso_number:4>1257 <app_jlog_eqsl_qsl_sent:1>Y <
+app_jlog_eqsl_qslsdate:10>2006-07-01 <app_jlog_lotw_qsl_sent:1>Y <
+app_jlog_lotw_qslsdate:10>2006-07-01 <operator:4>N7DQ <eor>
Code tags added by GrandFather
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.