Skip Menu |

This queue is for tickets about the URI CPAN distribution.

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

Owner: Nobody in particular
Requestors: GUSTRA [...]

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

Subject: to_string is missing for URI::_generic
Download (untitled) / with headers
text/plain 404b
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 ./ line 5. Stringification can be used as a workaround, but "to_string should" be available to make the code more readable.
text/x-perl 72b
#!/usr/bin/env perl use URI; print URI->new('entry')->to_string, "\n";
Download (untitled) / with headers
text/plain 210b
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

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to