dusk has asked for the wisdom of the Perl Monks concerning the following question:

I am writing a small script to automatically update the IP that a dynamic DNS points to (for

The most efficient way that I can think of is to execute /sbin/ifconfig ppp0, and get the inet address, and store it in a scalar for processing

for example:

my $account = "blah"; my $password = "blah"; my $ip = exec "/sbin/ifconfig ppp0"; get ("$account&pwd=$password& +hostname=all&ip=$ip");

However, in order for this to work, I need the IP in the URL to `get'.

Any assistance will be appreciated :)