in reply to Re: gethostbyname("1.1.1") returns 1.1.0.1 ????
in thread gethostbyname("1.1.1") returns 1.1.0.1 ????
if there are 3 or 2, the one or two numbers before the last are assumed to be 0.While this is "true", it obscures the fact that the range of the last part depends on how many parts there are.
| Parts: | Range of last part: |
| 4 | 28-1 = 255 |
| 3 | 216-1 = 65535 |
| 2 | 224-1 = 16777215 |
| 1 | 232-1 = 4294967295 |
jdporter
The 6th Rule of Perl Club is -- There is no Rule #6.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: gethostbyname("1.1.1") returns 1.1.0.1 ????
by MarkM (Curate) on Mar 06, 2003 at 06:59 UTC | |
by jdporter (Paladin) on Mar 11, 2003 at 19:56 UTC | |
by MarkM (Curate) on Mar 12, 2003 at 04:51 UTC | |
by jdporter (Paladin) on Mar 12, 2003 at 12:51 UTC | |
by zengargoyle (Deacon) on Mar 12, 2003 at 05:54 UTC | |
by MarkM (Curate) on Mar 12, 2003 at 06:22 UTC |