If it's the former, you can create a bit vector, each bit corresponding to one IP address. An IPv4 address has 4 bytes or 32 bites, so you need 2**32/8 = 0.5G bytes. See vec for a function that manipulates bit vectors in Perl.
You can also use out-of-memory storage such as GDBM_File, but that will probably slow down your program.
In reply to Re: Working with large amount of data
by moritz
in thread Working with large amount of data
by just1fix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |