in reply to gethostbyaddr question

You're writing in Perl now, not C. Use the Perl way of doing the loops you're using...
for my $i ( 0..255 ) { for my $j ( 0..255 ) { for my $k ( 0..255 ) { for my $l ( 0..255 ) { } } } }

xoxo,
Andy

%_=split/;/,".;;n;u;e;ot;t;her;c; ".   #   Andy Lester
'Perl ;@; a;a;j;m;er;y;t;p;n;d;s;o;'.  #   http://petdance.com
"hack";print map delete$_{$_},split//,q<   andy@petdance.com   >