2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by terabyte
0
sub uri_split
{
	my $url = shift;
	return $url =~ m|(?:([^:/?#]+):)?(?://([^/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?|;
}

my ($scheme, $auth, $path, $query, $frag) = &uri_split($url);

split the uri and compare it

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.