bailybj has asked for the wisdom of the Perl Monks concerning the following question:
Help Please????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?
Edit 2001-03-26 by tye to add <code> tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: split delimiters II
by jeffa (Bishop) on Mar 27, 2001 at 02:57 UTC | |
|
Re: split delimiters II
by Anonymous Monk on Mar 27, 2001 at 02:34 UTC |