in reply to Getting external IP

Try the following (site) to obtain your external IP address:

chomp (my $ip = get('http://icanhazip.com'));

Replies are listed 'Best First'.
Re^2: Getting external IP
by vwyoda (Initiate) on Jun 28, 2012 at 22:49 UTC
    Thanks that gave me my desired results :) Though I am not sure, why that works and mine did not. Time to read about chomp and re-read about get again. Then just need to figure out the last thing to not record a duplicate IP in the file.

      Glad it worked! I'm guessing that the issue was mainly the site you were using, as http://icanhazip.com/ returns just a plain external IP address.

        Ahhh OK makes sense to me. Again thank you for your time and knowledge.