Hi all this is my first question on this board.
I have a data log file which needs splitting.
the data file consists of the following data:
Fri Nov 30 16:52:25 2007 | <hostname> | <ip_address> |<user>|logon failed |
Mon Dec 3 09:59:25 2007 | <hostname> | <ip_address> |<user>|logon succeeded |
I have separated this pipe delimited file. However I need to separate date field (first column) to separate
the problem is the $date can either be single or double characters & my perl has gone rusty after being away from it for 5 years. Is there a simple solution that will split Fri Nov 30 16:52:25 2007 or Mon Dec 3 09:59:25 2007 to separate $day,$month,$date,$time,$year reliably?