Re: Query an IP from file

2007-05-23 Thread Mumia W.
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

Re: Query an IP from file

2007-05-23 Thread Dr.Ruud
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

Re: Query an IP from file

2007-05-23 Thread Jeff Pang
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

Re: Query an IP from file

2007-05-22 Thread yaron
, 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

Re: Query an IP from file

2007-05-22 Thread John W. Krahn
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

RE: Query an IP from file

2007-05-22 Thread 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.2

Query an IP from file

2007-05-22 Thread Jeff Pang
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