Hello

Certainly I have already new in program with perl , so I need help
with a log scan program, that extract a field information from a log file
and get some fileds in order to use in another program.
the log fields looks like this:

Jul 24 11:37:59.878 [13001] (v3.1.2) POP login by user "conhosvp" at (m32.ibw.com.ni) 
216.226.201.71
Jul 24 11:37:59.932 [13002] (v3.1.2) POP login by user "icade" at (mdig76.ibw.com.ni) 
64.110.119.80

If you see the digits 24 are the second field using split(/ /,$s) where
the white space is the separator, the problems begin when the digit is
just one, thats mean from 1 to 9, the field become third because the split
take a white space as the second field, that situation results in that i
need to change the program every time the date change from 1 to 2 digits
to read correctly the fields.

Is there a solutions to avoid this situation with the split function??
Thank you for your help.


Marvin Bonilla



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to