As I have never posed questions to the Perl Gods, I wasn't
what you needed here is the data:
The date time> [21]Alert Started (34897), Status: etc...
the code reads:
($date_stamp,$event,$alert_id,$status)=split(/>/);
but that only breaks off the first part. Now I need to go
further:
1:) > works for the date_stamp
2:) [ is needed for the [21] Alert Started (The [21] is
not always the same but this little phrase always ends
in "ed".
3:)(34897)is the alert_id but can vary from 1-5digits
4:) , will work for Status.
How do I use [ and ) for split delimiters and how do I list
more than a one delimiter split?
Help Please????
Edit 2001-03-26 by tye to add <code> tags
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.