drieux wrote:

> But there is this minor little problem, the fly in the ointment
>
>         nas.nasa.gov
>
> it happens to BE the domain name - yes it is in the 'nasa.gov'
> name space - but it is it's own domain to which the 'host'
> component would be the www as in:
>
>         www.nas.nasa.gov
>
> This is a part of the reason that trying to pick out the
> "domain" without getting into the actual DNS level gets

Great.  A relevant point.  How about:
$url =~ s/^www\.//;

There is one case I know of though, where the elimination of the www. prefix
would make a substantial difference.
At
http://www.efn.org
you get a standard web page for a public ISP.  Use
http://efn.org
you get a Java applet that mediates a telnet session.  Such cases are rare,
though.

Joseph


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to