Skip Menu |

This queue is for tickets about the URI CPAN distribution.

Report information
The Basics
Id: 70461
Status: open
Priority: 0/
Queue: URI

People
Owner: Nobody in particular
Requestors: GUSTRA [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.56
Fixed in: 1.69



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";
This error doesn't occur on latest version of URI, but the method is `as_string` and not `to_string` as reported. Testcase: $ perl -e 'use URI; print URI->new('entry')->as_string, "\n";' Output: entry