Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: How to monitor a logfile with columns for certain data?

by gamache (Friar)
on Nov 16, 2007 at 17:12 UTC ( [id://651270] : note . print w/replies, xml ) Need Help??


in reply to Re^2: How to monitor a logfile with columns for certain data?
in thread How to monitor a logfile with columns for certain data?

Each field is an element in the @fields_nospace array; the first field (File Name) is at $fields_nospace[0], and the fifth field (Errors) is at $fields_nospace[4]. So you can check if $fields_nospace[4] > 0, or if $fields_nospace[2] != $fields_nospace[3], and do things based on those conditions. Hope this helps.