![]() |
![]()
| ![]() |
![]()
NAMEIRI - Internationalized Resource Identifiers VERSIONThis document describes IRI version 0.013 SYNOPSISuse 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 DESCRIPTIONThe 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. ATTRIBUTES
METHODS
SEE ALSO<http://www.ietf.org/rfc/rfc3987.txt> AUTHORGregory Todd Williams "<gwilliams@cpan.org>" COPYRIGHTCopyright (c) 2014--2024 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|