in reply to Re: URI Module can't find method
in thread URI Module can't find method
sub process_request { my $a = shift @_; if (not $a =~ m!^http://.*!) { $a = "http://$a" } my $url = URI->new($a); my $host = $url->host(); my $port = $url->port(); my $path = $url->path(); if ($port eq "") { $port = 80; } if ($path eq "") { $path = "/" } return ($host, $port, $path); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: URI Module can't find method
by mojotoad (Monsignor) on Nov 17, 2004 at 22:55 UTC |