
KevinR
Veteran

Apr 18, 2009, 12:43 PM
Post #6 of 6
(394 views)
|
I am trying to learn grep. How do i print or display email or date of birth or what ever!! from a file? i can compare the sequence of whatever i want, using reg. exp, but don't know how to use grep. If you know how to use regexp, you know how to use grep. @out = grep {/regexp/} input; You can use other things inside the grep block, it doesn't have to be a regexp. http://www.google.com/search?q=perl+grep+tutorial -------------------------------------------------
|