At 02:38 AM 9/24/2004, you wrote:
HiFor debugging purposes I would like to get a hostname (from an ip) on a ic pageI have tryed following (with an lot of variations over "use Socket", Socket:.....)[perl] $hostip="1.2.3.4"; return(gethostbyaddr(Socket::inet_aton($hostip),Socket::AF_INET) ); [/perl] But it alvays gives an error, like - Safe: 'gethostbyaddr' trapped by operation - Undefined subroutine &Socket::inet_aton - "use" not allowed in expressionIf I want to make an 'lookup' of the hostname. Do I have to make an usertag to do it ?- Niels
You could make a global UserTag to do this, which is probably the most correct way once you have working code. In the meatime you can do this in interchange.cfg:
AllowGlobal yourcat
(restart Interchange) ...and then add global=1 to the opening [perl] tag,
and you should be able to develop and test your code with in-page perl like
you were trying to.
- Ed =============================================================== New Media E.M.S. Technology Solutions for Business 11630 Fair Oaks Blvd., #250 eCommerce | Consulting | Hosting Fair Oaks, CA 95628 suppressed (916) 961-0446 http://www.newmediaems.com (866) 519-4680 Toll-Free (916) 961-0447 Fax===============================================================
_______________________________________________ interchange-users mailing list suppressed http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.