By typing ga while the cursor was positioned over the micro in
@cache = split 'µ';I get <µ> <|5> <M-5> 181, Hex b5, Octal 265 down the bottom (in the ruler?) So that makes it a byte of value 0xb5?
Anyway my squid logs look like this:
1031902298.709 609 10.0.14.117 TCP_MISS/302 376 GET http://ad.doubl +eclick.net/ad/max.starwarskids/ros;sz=468x60;num=443509536434963200 f +red DIRECT/204.253.104.95 -
There are one or more spaces between feilds (OT: cut -f2 -d' ' doesn't work :-( ). I was using:
but it seems to work better withwhile (<LOG>) { @line_elements = split(' '); ... }
@line_elements = split(/\s+/);
Is this bad? \s is whitespace (tabs as well)? I am actually reading the Friedl book (Mastering Regular Expressions) atm.
In reply to Re: Re: Splitting squid log lines with perl
by blm
in thread Splitting squid log lines with perl
by blm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |