diff options
author | Sebastian Willing <sewi@cpan.org> | 2015-08-28 14:05:13 +0200 |
---|---|---|
committer | Olaf Alders <olaf@wundersolutions.com> | 2023-04-29 15:58:40 +0200 |
commit | 44ebc98e09bfdda797b52940d7ee941c97e406b5 (patch) | |
tree | 859b9fdec4e1f95ce41763893fa81b0b856e5a13 | |
parent | 81a4678022d08a1ddc58094d429f1f852a84f3f0 (diff) | |
download | uri-44ebc98e09bfdda797b52940d7ee941c97e406b5.tar.gz |
Add samples to POD
-rw-r--r-- | lib/URI.pm | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -884,9 +884,14 @@ value from $uri->host. When setting the host attribute to an IPv6 address you can use a raw address or one enclosed in brackets. The address needs to be enclosed in brackets if you want to pass in a new port value as well. +Sample: Returns I<www.xn--ri-sample-fra0f> for I<http://www.E<0xC3>E<0xBC>ri-sample/foo/bar.html> + =item $uri->ihost -Returns the host in Unicode form. Any IDNA A-labels are turned into U-labels. +Returns the host in Unicode form. Any IDNA A-labels (encoded unicode chars with +I<xn--> prefix) are turned into U-labels (unicode chars). + +Sample: Returns I<www.E<0xC3>E<0xBC>ri-sample> for I<http://www.E<0xC3>E<0xBC>ri-sample/foo/bar.html> =item $uri->port |