Perl-Sensitive Sunglasses | |
PerlMonks |
Searching tabs in a list of filesby haoess (Curate) |
on Aug 25, 2005 at 12:18 UTC ( [id://486521]=CUFP: print w/replies, xml ) | Need Help?? |
Sometimes you want to find files with tabs (\t) within their content. With most greps this is a difficult task:
Using perl, there is another problem: If you want to see the line number, you usually use the special $. variable. But: Because <> never does an explicit close, line numbers increase across ARGV files. So you have to close ARGV manually:
-- Frank
Back to
Cool Uses for Perl
|
|