![]() |
|
"be consistent" | |
PerlMonks |
Re: Isn't there a print line function?by nardo (Friar) |
on Sep 04, 2001 at 19:43 UTC ( #110062=note: print w/replies, xml ) | Need Help?? |
If you want to find which lines match a pattern you an use grep and if you want to print all them out you can use something like: print join('', grep(/whatever/, @lines)); If you just want to print out the first match you can use print ((grep(/whatever/, @lines))[0]);
In Section
Seekers of Perl Wisdom
|
|