in reply to inet_ntoa question
To get the proper string format to feed to inet_ntoa$var=chr(0x0a).chr(0x0a).chr(0x0a).chr(0x01); # OR $var=v10.10.10.1; #using the v-string notation if your perl is new en +ough # OR $var=pack "CCCC", 10, 10, 10, 1; # OR (probably best yet) $var=inet_aton 0x0a0a0a01;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: inet_ntoa question
by Funkster (Initiate) on Mar 04, 2004 at 23:52 UTC |