NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Apples and Oranges (Score:1)
For speed I'm offering (untested, just jotted down quickly):
#/usr/bin/perl -n
for $e (qw/gif jpg css GIF JPG CSS/) {
next if index($_, "$e HTTP") != -1
}
print, next if substr($_, 0, 4) eq '192.';
next if substr($_, 4, 2) eq '9.';
next if substr($_, 4, 3) eq '18.';
next if substr($_, 4, 3) eq '29.';
print
and for elegance (untested again):
#!/usr/bin/perl -n
next if
next if
print;
marcel
Reply to This
Re:Apples and Oranges (Score:1)
> next if index($_, "$e HTTP") != -1
next LINE if index($_, "$e HTTP") != -1
and
> print, next if substr($_, 0, 4) eq '192.';
print, next if substr($_, 0, 4) ne '192.';
oh, for an edit interface... but you get the idea.
marcel