I use the host environment variable to identify the host in a script that runs on 2 domains, one parked on the other. When I run the following code, there is no www. at the beginning of the string.
But, when I use it in an email address, it adds a www.
Looks like this: [email protected]www.somesite.com
Why does it do that?
Code:
#!/usr/bin/perl use CGI; my $host = $ENV{'HTTP_HOST'}; print "Content-type: text/html\n\n"; print "$host";
Code:
mymail= "someone\@$host";
Why does it do that?
Comment