On 05/23/2007 03:01 AM, Jeff Pang wrote:
Hello Thomas,
I tried your codes,it's good I think.
I've modified some of the codes to fit my situation.
But if the network data files include too much IPs,my program used up
all memory and couldn't get continued.
Below are my modified codes.Attachmen
Jeff Pang schreef:
> I have a text file which contains lots of IPs,like:
> 58.253.0.0/16;
> :
> 60.3.0.0/16;
Is it always /16? Can they overlap?
> My question is,[ ]given an IP,[ ]ie 59.32.232.33,[ ]how
> can I know it exists in this file or not?
exists? ITYM: matches (they are masks)
You cou
Thomas Bätzler 写道:
Hi,
Jeff Pang <[EMAIL PROTECTED]> asked:
I have a text file which contains lots of IPs,like:
58.253.0.0/16;
58.254.0.0/16;
58.255.0.0/16;
60.0.0.0/16;
60.1.0.0/16;
60.10.0.0/16;
60.16.0.0/16;
60.17.0.0/16;
60.18.0.0/16;
60.19.0.0/16;
60.2.0.0/16;
60.20.0.0/16;
60.21.0.0/16
,
Yaron Kahanovitch
- Original Message -
From: "Jeff Pang" <[EMAIL PROTECTED]>
To: "Perl Beginners"
Sent: 11:45:43 (GMT+0200) Africa/Harare יום שלישי 22 מאי 2007
Subject: Query an IP from file
Hello,
I have a text file which contains lots of IPs,like:
58
Jeff Pang wrote:
> Hello,
Hello,
> I have a text file which contains lots of IPs,like:
>
> 58.253.0.0/16;
> 58.254.0.0/16;
> 58.255.0.0/16;
> 60.0.0.0/16;
> 60.1.0.0/16;
> 60.10.0.0/16;
> 60.16.0.0/16;
> 60.17.0.0/16;
> 60.18.0.0/16;
> 60.19.0.0/16;
> 60.2.0.0/16;
> 60.20.0.0/16;
> 60.21.0.0/16
Hi,
Jeff Pang <[EMAIL PROTECTED]> asked:
> I have a text file which contains lots of IPs,like:
>
> 58.253.0.0/16;
> 58.254.0.0/16;
> 58.255.0.0/16;
> 60.0.0.0/16;
> 60.1.0.0/16;
> 60.10.0.0/16;
> 60.16.0.0/16;
> 60.17.0.0/16;
> 60.18.0.0/16;
> 60.19.0.0/16;
> 60.2.0.0/16;
> 60.20.0.0/16;
> 60.2
Hello,
I have a text file which contains lots of IPs,like:
58.253.0.0/16;
58.254.0.0/16;
58.255.0.0/16;
60.0.0.0/16;
60.1.0.0/16;
60.10.0.0/16;
60.16.0.0/16;
60.17.0.0/16;
60.18.0.0/16;
60.19.0.0/16;
60.2.0.0/16;
60.20.0.0/16;
60.21.0.0/16;
60.22.0.0/16;
60.23.0.0/16;
60.3.0.0/16;
My question is