kasei / perl-iri

Perl implementation of Internationalized Resource Identifiers (IRIs)
0 stars 6 forks source link

Minimal changes to pass components #16

Closed kjetilk closed 4 years ago

kjetilk commented 4 years ago

I don't know if I even got the right idea with this, but

my $iri = IRI->new(lazy => 1,
             'resolved_components' => {
                        'scheme' => 'http',
                        'path' => '/',
                        'host' => 'example.com'
                      },
                     );
print $iri->as_string  . "\n";

prints the correct string with this PR.

So, I figured I'll just show it to you to find out whether it is worth trying to do this further.