in reply to how to search 3 different patterns from a file

suppose I have a log file ~ temp.log which contains some information.I need to find 3 patterns from that file..so that if those 3 patterns are found in a file.. then a test case is termed as "passed".
[SNIP]
I need to find 2 patterns in this file:
Were not they 3?!?
  1. Note;ListOpDone(1/50) LISTADD:List=4:Items=2
  2. Note;BlockedSender(1/0) orbsctest1@openwave.com>:[10.196.4.110]:4:3:dropspam:block
These are not patterns. These are strings. So you want these strings to match, but you fail to explain by which criteria they must match. Or do you want to test for exact equality? (Doubt so!)
I have converted both patterns using quotemeta and they look like this.
Well, it's still not entirely clear (to me, that is) what it is that you want to do. But just put the so obtained strings in a match operator and use it. This is basic Perl...
How to search for these 2 patterns in an effient way from a file ?
Since you used quotemeta in the first place chances are you do not want a pattern. Just use C<eq> instead.