@error1=(grep {/0 Items in Feed & 0 New Fetched items/} ); if(@error1) { print "match found (@error1)"; } else { print"nothing"; }