Thank´s to all!
I use the split solution to separate the string in parts.
Atenciosamente,
Márcio Oliveira
LPIC-1
Analista de Suporte Pleno.
Márcio Oliveira wrote:
> Hi all.
>
>I have a simple (I guess) question about spliting strings in perl.
>
>I need to split a string like this:
Márcio Oliveira wrote:
> Hi all.
>
>I have a simple (I guess) question about spliting strings in perl.
>
>I need to split a string like this: "10.10.2.131 - -
> [27/Jul/2004:08:20:43 -0300] "GET http://lalala/chiclete_01.jpg
> HTTP/1.0" 407 1399 TCP_DENIED:NONE" (a squid log) in so
Thanks Render, but I have one more question:
I make this test in my linux (using perl -de 1) and the regexp work perfect,
but when I put it into my script, it ins't work. The vars gets null values
and don't print the informations.
>DB<12> $linha = qq{10.10.2.131 - - [27/Jul/2004:08:20:43 -030
-Original
Message-From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]On Behalf Of
Márcio OliveiraSent: Tuesday, July 27, 2004 09:13To:
[EMAIL PROTECTED]Subject: [Perl-unix-users]
Simple question about split string
Hi all.
I have a simple (I guess) question
about spliting
Hi all.
I have a simple (I guess) question
about spliting strings in perl.
I need to split a string like this:
"10.10.2.131 - - [27/Jul/2004:08:20:43 -0300] "GET http://lalala/chiclete_01.jpg HTTP/1.0"
407 1399 TCP_DENIED:NONE" (a squid log) in some parts:
$ip = 10.10.1.131
$d