2009/10/19 Hongyi Zhao <hongyi.z...@gmail.com>: > I want to write a script to note specific IP > addresses by appending the corresponding location informations. For
I suggest you take a look at Geo::IP [0]. I've used it quite a few times in the past for similar tasks to what you're describing. I could supply an example, but you'll learn more by trying yourself. If you get stuck, post back, and we'll take a look. Although, if your list is really custom, and you can't (or won't) use Geo::IP instead, then there's probably still a module on the cpan to help you out. A quick search suggests NetAddr::IP or Net::Netmask might be good starting points. Hope this helps. :) [0] http://search.cpan.org/perldoc?Geo::IP -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/