in reply to link parsing
I strongly recommend implementing this using URI!
Something in the line of (untested and incomplete!):
foreach my $url (@search) { my $uri = URI->new($url); if ($uri->scheme() =~ /http/ || !defined($uri->scheme()) { #process $uri } }
regards,
tomte
Hlade's Law:
If you have a difficult task, give it to a lazy person --
they will find an easier way to do it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: link parsing
by coldfingertips (Pilgrim) on Mar 30, 2004 at 09:35 UTC | |
by Chady (Priest) on Mar 30, 2004 at 09:55 UTC |