|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: How to look for exact pattern matchby davorg (Chancellor) |
| on Oct 30, 2001 at 10:22 UTC ( [id://122059]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
grep doesn't do what you think it does. For a start you're assigning the return value to a scalar, but it returns a list. I think that what you want is something like this:
But I'm slightly worried by your phrase "exact pattern match". Perhaps what you really want is: -- <http://www.dave.org.uk> "The first rule of Perl club is you don't talk about Perl club."
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||