Subject: | to_string is missing for URI::_generic |
The "to_string" should be available to all URI object according to the
documentation, but it is missing for URI::_generic.
Testcase:
use URI;
print URI->new('entry')->to_string, "\n";
Output:
Can't locate object method "to_string" via package "URI::_generic" at
./test_uri.pl line 5.
Stringification can be used as a workaround, but "to_string should" be
available to make the code more readable.
Subject: | test_uri.pl |
#!/usr/bin/env perl
use URI;
print URI->new('entry')->to_string, "\n";