bailybj has asked for the wisdom of the Perl Monks concerning the following question:
I need to divide the line into 4 variables: $date_stamp, $event, $alert_id, and $status. I am using: ($date_stamp,$event,$alert_id,$status)=split(>) for code and this will pull the $date_stamp out. This will pull the first variable: 2001/03/12 time. Var#2 runs from Event to the first word ending in "ed" and although this one always ends in "ed" the wording varies. Var #4: is always a number in () but it can vary from 1-5 digits. Var#4 is from the , to the end.2001/03/12 time>Event [21]Alert Completed (34562), Status: [22] Alert Completed,MN_netware-support
I have two questions: How do I list more than
one delimiter? and How do I list [ or ) as a delimiter?
Thank You!*!*!*!*!
Edit 2001-03-26 by tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: split delimiters #2
by wardk (Deacon) on Mar 27, 2001 at 04:59 UTC | |
|
Re: split delimiters #2
by dvergin (Monsignor) on Mar 27, 2001 at 05:13 UTC |