in reply to Getting "uninitialized value" that I can't figure out...

You can probably deduce where the uninitialized value lies by examining carefully the output of the printf().
I expect it's the gethostbyip($host) that's returning undef. In the getgostbyip sub you'll want to replace my $hostip = @_; with my $hostip = $_[0];. The way you've got it coded, $hostip will be set to the number of elements in @_ (which is "1" in this case.)

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: Getting "uninitialized value" that I can't figure out...
by dguntner (Novice) on Jul 22, 2007 at 06:01 UTC
    That took care of it! Thanks!

    --Dave