IRI(3pm) | User Contributed Perl Documentation | IRI(3pm) |
IRI - Internationalized Resource Identifiers
This document describes IRI version 0.011
use IRI; my $i = IRI->new(value => 'https://example.org:80/index#frag'); say $i->scheme; # 'https' say $i->path; # '/index' my $base = IRI->new(value => "http://www.hestebedg\x{e5}rd.dk/"); my $i = IRI->new(value => '#frag', base => $base); say $i->abs; # 'http://www.hestebedgård.dk/#frag' # Defer parsing of the IRI until necessary my $i = IRI->new(value => "http://www.hestebedg\x{e5}rd.dk/", lazy => 1); say $i->path; # path is parsed here
The IRI module provides an object representation for Internationalized Resource Identifiers (IRIs) as defined by RFC 3987 <http://www.ietf.org/rfc/rfc3987.txt> and supports their parsing, serializing, and base resolution.
<http://www.ietf.org/rfc/rfc3987.txt>
Gregory Todd Williams "<gwilliams@cpan.org>"
Copyright (c) 2014--2018 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2020-02-22 | perl v5.30.0 |