The stupid question is the question not asked | |
PerlMonks |
Re: Re: Splitting squid log lines with perlby blm (Hermit) |
on Sep 16, 2002 at 11:13 UTC ( [id://198213]=note: print w/replies, xml ) | Need Help?? |
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:
There are one or more spaces between feilds (OT: cut -f2 -d' ' doesn't work :-( ). I was using: but it seems to work better with
Is this bad? \s is whitespace (tabs as well)? I am actually reading the Friedl book (Mastering Regular Expressions) atm.
In Section
Seekers of Perl Wisdom
|
|