mosh has asked for the wisdom of the Perl Monks concerning the following question:
I tried to increment ip address as follows.
my $ip = '1.2.3.4' +1;
I meant that the $ip would get the value '1.2.3.5'.
Of course it wasn't work:
"Argument "1.2.3.4" isn't numeric in addition (+)..."
Do anyone have an idea how should I do it ?
Thanks,
Mosh.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Increment of ip address
by jdporter (Paladin) on Jun 16, 2005 at 16:19 UTC | |
by mosh (Scribe) on Jun 16, 2005 at 18:13 UTC | |
by northwind (Hermit) on Jun 16, 2005 at 18:41 UTC | |
|
Re: Increment of ip address
by davidrw (Prior) on Jun 16, 2005 at 15:57 UTC | |
by ikegami (Patriarch) on Jun 16, 2005 at 16:10 UTC | |
|
Re: Increment of ip address
by cool_jr256 (Acolyte) on Jun 16, 2005 at 16:02 UTC | |
by davidrw (Prior) on Jun 16, 2005 at 17:07 UTC | |
|
Re: Increment of ip address
by monkey_boy (Priest) on Jun 16, 2005 at 16:10 UTC | |
|
Re: Increment of ip address
by monarch (Priest) on Jun 17, 2005 at 00:54 UTC |