Mario Todorow <[EMAIL PROTECTED]> wrote:
>perl -ne ' print "$1\n" if /\s(\d+\.\d+\.\d+\.\d+)\s/ ' file
>
>is better.

Tnx, I'm already using something similar. Now there is another catch when
I have to deal with two IPs in a single line. I have to use regexp in LIST
context(i.e. @myips = $line =~ /(blahblah)/g ) in order to evaluate second
"blahblah" from $line. If I use $1 and $2, *only* $1 get filled, don't
know why..



-- 
Matija

Reply via email to