Nothin' wrong with your code, but it looks like the best solution for you to comply with their wishes is to separate the perlscript from the asp page and create a new cgi perl page which your asp page can post to (sending the domain to check and the calling page token to keep these transactions unique). Then have the cgi perl post back to the calling page with the results.
This should be fairly easy to set up... HTH, tom -----Original Message----- From: Otoniel Cantu` [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 30, 2002 8:32 PM To: ActiveServerPages Subject: RE: ASP and Perl Here is the code. I know that perlscript is installed. <% Dim remote_addr, domainname 'VBScript ASP to call the DNS Lookup PerlScript remote_addr = request.servervariables("REMOTE_ADDR") domainname = finddomainname(remote_addr) 'Response.Write domainname %> <script language="PerlScript" runat="server"> sub finddomainname { $ipaddr = $_[0]; ($ip1, $ip2, $ip3, $ip4) = split(/\./, $ipaddr); $addr=pack("CCCC", $ip1, $ip2, $ip3, $ip4); $domain=gethostbyaddr($addr, AF_INET); return $domain; } </script> -----Original Message----- From: TomMallard [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 30, 2002 5:24 PM To: ActiveServerPages Subject: RE: ASP and Perl Let's see the code you use to call the perlscript, 'specially the language declaration, it might just be that perl isn't installed on your target server or can't be run from the web pages due to permissions. tom mallard seattle -----Original Message----- From: Otoniel Cantu` [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 30, 2002 3:47 PM To: ActiveServerPages Subject: RE: ASP and Perl The problem I am having is that I have an asp page that uses PerlScript to do a reverse dns. It all works fine and dandy but the customer now wants to use Linux/redhat/chilisoft and of course chilisoft doesn't know what PerlScript is and thus it doesn't work. Any ideas? Thanks! -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 30, 2002 3:32 PM To: ActiveServerPages Subject: RE: ASP and Perl If you mean server-side Perl using something like mod_perl or CGI, no. If you mean screen-scraping a Perl page, yes. Of course, you could always install PerlScript as a scripting engine for ASP (http://www.activestate.com/Products/ActivePerl/). -Stephen -----Original Message----- From: Otoniel Cantu` [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 30, 2002 6:38 PM To: ActiveServerPages Subject: ASP and Perl Is it possible to take info off of a perl page with asp? By this I mean is it possible to have perl do its little thing and then send that info to an asp pages to process? Thanks in advance! --- You are currently subscribed to activeserverpages as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% --- You are currently subscribed to activeserverpages as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% --- You are currently subscribed to activeserverpages as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% --- You are currently subscribed to activeserverpages as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% --- You are currently subscribed to activeserverpages as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% --- You are currently subscribed to activeserverpages as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED]
