URI-1.35 > URI::Split

名前

URI::Split - Parse and compose URI strings

URI::Split - URI 文字列をパースおよび構成する

概要

 use URI::Split qw(uri_split uri_join);
 ($scheme, $auth, $path, $query, $frag) = uri_split($uri);
 $uri = uri_join($scheme, $auth, $path, $query, $frag);

説明

Provides functions to parse and compose URI strings. The following functions are provided:

Provides functions to parse and compose URI strings. The following functions are provided: (TBT)

($scheme, $auth, $path, $query, $frag) = uri_split($uri)

Breaks up a URI string into its component parts. An undef value is returned for those parts that are not present. The $path part is always present (but can be the empty string) and is thus never returned as undef.

Breaks up a URI string into its component parts. An undef value is returned for those parts that are not present. The $path part is always present (but can be the empty string) and is thus never returned as undef. (TBT)

No sensible value is returned if this function is called in a scalar context.

No sensible value is returned if this function is called in a scalar context. (TBT)

$uri = uri_join($scheme, $auth, $path, $query, $frag)

Puts together a URI string from its parts. Missing parts are signaled by passing undef for the corresponding argument.

Puts together a URI string from its parts. Missing parts are signaled by passing undef for the corresponding argument. (TBT)

Minimal escaping is applied to parts that contain reserved chars that would confuse a parser. For instance, any occurrence of '?' or '#' in $path is always escaped, as it would otherwise be parsed back as a query or fragment.

Minimal escaping is applied to parts that contain reserved chars that would confuse a parser. For instance, any occurrence of '?' or '#' in $path is always escaped, as it would otherwise be parsed back as a query or fragment. (TBT)

SEE ALSO

URI, URI::Escape

コピーライト

Copyright 2003, Gisle Aas

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.