Perl Monk, Perl Meditation | |
PerlMonks |
to $Env{'HTTP_HOST'} or to $Env{'SERVER_NAME'}, that is the question.by JK_Bean (Novice) |
on Jun 28, 2001 at 19:37 UTC ( [id://92325]=perlquestion: print w/replies, xml ) | Need Help?? |
JK_Bean has asked for the wisdom of the Perl Monks concerning the following question:
When checking $Env{}, which is the proper key to use to see if the domain is www.myserver.com or myserver.com, or is there another more technically correct way do to this?
When I use either 'HTTP_HOST' or 'SERVER_NAME', I get the same result. I want to be safe so my code is more portable.
Back to
Seekers of Perl Wisdom
|
|