Saved has asked for the wisdom of the Perl Monks concerning the following question:
When I drop this code on HP-UX it works, but in XP -strawberry perl it fails.
HP-UX
perl -MSocket -le 'print scalar gethostbyaddr(inet_aton("127.0.0.1"),A +F_INET)' localhost
Strawberry on XP
perl -MSocket -le 'print scalar gethostbyaddr(inet_aton("127.0.0.1"),A +F_INET)' C:\strawberry\Scripts>perl -MSocket -le 'print scalar gethostbyaddr(in +et_aton("127.0.0.1"),AF_INET)' Can't find string terminator "'" anywhere before EOF at -e line 1.
This is from "http://www.perlmonks.org/?node_id=87190"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XP fails, HP-UX OK
by kcott (Archbishop) on Mar 07, 2012 at 14:52 UTC | |
|
Re: XP fails, HP-UX OK
by toolic (Bishop) on Mar 07, 2012 at 13:50 UTC | |
|
Re: XP fails, HP-UX OK
by Anonymous Monk on Mar 07, 2012 at 13:47 UTC | |
|
Re: XP fails, HP-UX OK
by choroba (Cardinal) on Mar 07, 2012 at 13:47 UTC | |
by Anonymous Monk on Mar 07, 2012 at 13:54 UTC | |
by Saved (Beadle) on Mar 07, 2012 at 13:56 UTC |