Perhaps a better strategy would be to let the URI module do that work for you since that's what it does best:
my $str = shift @_; my $uri = URI->new($str); $uri->scheme('http') unless $uri->scheme; ...
Cheers,
Matt
In reply to Re^3: URI Module can't find method
by mojotoad
in thread URI Module can't find method
by RobertJ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |