Re: extracting mailto's
Harald Joerg (Harald.Joerg@mch.sni.de)
Tue, 13 Jan 1998 09:58:00 +0100
Otis Gospodnetic wrote:
> I wrote a little robot using LWP some time ago and wanted to add the ability
> to extract not only URLs but also mailto's [...]
> if (lc($u->scheme) eq "mailto") {
>
> # now how do I access the e-mail address after mailto: ?
> # normally I can access $u->scheme, host, port, epath, etc.
> but I can't figure out how to get the e-mail address.
In the documentation of URI::URL you can find a section
"MAILTO METHODS" which offers $url->address and also says
that you can access the mail address with the netloc()
method.
--
Oook,
--haj--