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.
In reply to Re: link parsing
by Tomte
in thread link parsing
by coldfingertips
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |