Hi,
use 'i' for ignore case.
if ($_=~m#error#i) { .. ## It'll match whole 'error' } [download]
In reply to Re: Match upper and lower case by gopalr in thread Match upper and lower case by benlaw