Re: [Tutor] Want to write a Perl based IP to Domain Name converter.

2009-01-31 Thread Martin Walsh
wesley chun wrote: > The script in the following can do the batch conversion from domain > name to IP: This is a Python list, not Perl! >>> OMG! It's my mistake, sorry for this. >> Lol..thats okay. Now that you are here and have seen what fun we have >> writing Python code - why not

Re: [Tutor] Want to write a Perl based IP to Domain Name converter.

2009-01-31 Thread wesley chun
>> >> The script in the following can do the batch conversion from domain >> >> name to IP: >> >> > This is a Python list, not Perl! >> >> OMG! It's my mistake, sorry for this. > > Lol..thats okay. Now that you are here and have seen what fun we have > writing Python code - why not join the party

Re: [Tutor] Want to write a Perl based IP to Domain Name converter.

2009-01-31 Thread OkaMthembo
Lol..thats okay. Now that you are here and have seen what fun we have writing Python code - why not join the party? Don't be shy to join us :p - i bet you won't be sorry. On Sat, Jan 31, 2009 at 4:11 PM, wrote: > On Saturday, January 31, 2009 at 21:44, ken...@tds.net wrote: > > On Sat, Jan 31

Re: [Tutor] Want to write a Perl based IP to Domain Name converter.

2009-01-31 Thread hongyi . zhao
On Saturday, January 31, 2009 at 21:44, ken...@tds.net wrote: > On Sat, Jan 31, 2009 at 7:11 AM, wrote: >> Hi all, >> >> The script in the following can do the batch conversion from domain name to >> IP: > This is a Python list, not Perl! OMG! It's my mistake, sorry for this. -- Hongyi Zhao

Re: [Tutor] Want to write a Perl based IP to Domain Name converter.

2009-01-31 Thread Kent Johnson
On Sat, Jan 31, 2009 at 7:11 AM, wrote: > Hi all, > > The script in the following can do the batch conversion from domain name to > IP: ?? This is a Python list, not Perl! Kent > > -- > > #!/usr/bin/perl > use warnings; > use strict; > use Socket; > > while ( <> ) { > chomp

[Tutor] Want to write a Perl based IP to Domain Name converter.

2009-01-31 Thread hongyi . zhao
Hi all, The script in the following can do the batch conversion from domain name to IP: -- #!/usr/bin/perl use warnings; use strict; use Socket; while ( <> ) { chomp; my ( $address, $port ) = split /:/ or next; my $number = inet_aton $address; my $ip = in