Don't ask to ask, just ask | |
PerlMonks |
Re: grep return the entire file not the line which matchesby FunkyMonk (Chancellor) |
on Aug 03, 2011 at 15:41 UTC ( [id://918311]=note: print w/replies, xml ) | Need Help?? |
After fixing your lack of strictures, as suggested by moritz and Corion, you still have a problem. The first argument of grep is not a string to search for, rather, it should be an expression (/$en/, for example). You'll end up with something like:
In Section
Seekers of Perl Wisdom
|
|