|
|
| Just another Perl shrine | |
| PerlMonks |
Re: Running Perl thru HTMLby FitTrend (Pilgrim) |
| on Mar 14, 2005 at 14:05 UTC ( #439280=note: print w/ replies, xml ) | Need Help?? |
|
Yes you can. What you can do on your webserver (I'm assuming apache) is to configure your directory with the ExecCGI directive in your httpd.conf file.
Then create an index.cgi file that performs to reference the variable $ENV{'REMOTE_ADDR'} variable within your script. Then utilize that value to perform your task. Lastly, redirect the user to that page. I personally use javascript (because sometimes I refresh multiple iframes or frames) for my redirects, like:
Hope this helps
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||