in reply to printing the line after grepping
this approach is quite dangerous, as it reads whole FILE before grep-ing. Try to use while@error1=(grep {/0 Items in Feed & 0 New Fetched items/} <FILE>); if(@error1) { print "match found (@error1)"; } else { print"nothing"; +}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: printing the line after grepping
by rajyalakshmi (Acolyte) on Nov 11, 2009 at 14:01 UTC | |
by ikegami (Patriarch) on Nov 11, 2009 at 16:56 UTC | |
by rajyalakshmi (Acolyte) on Nov 12, 2009 at 05:53 UTC |