XP is just a number | |
PerlMonks |
Questions about Grepby Anonymous Monk |
on May 29, 2008 at 18:59 UTC ( [id://689067]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: HI! Sorry for this really newbie question, but I was just wondering if grep works the same in UNIX and perl. Right now I can do this in grep: grep pattern filename And i'll know if that pattern occurs in the file. But from my reading so far, as I can tell, this function in perl only works in the sense that grep(pattern,list) but I would rather search a file then a list. I have alternative ways to perform the action of grep. But I'd like to use the power of grep to do my dirty work for me. Thanks!
Back to
Seekers of Perl Wisdom
|
|