I think this would require changes to IO::All as well (Ingy, are you
reading this?).
The normal way of doing this would be to create a module called
IO::All::FILE, similar to IO::All::FTP etc. This is trivial and can be
done in five minutes. This module should be loaded automatically by
IO::All when it sees a file URL. The problem is that there exists
already a module called IO::All::File (note the case difference),
which causes two problems. One is that this could be a mess in
case-insensitive filesystems. But second and perhaps more important is
that IO::All tries to load IO::All::File before it tries to load
IO::All::FILE. A quick hack for dealing with that is to swap the if
and elsif in IO::All::autoload_class() to give higher precedence to
all-caps module names. But perhaps Ingy has a more elegant solution in
mind.
Cheers,
Ivan
On Sat, Jun 20, 2009 at 12:55 AM, Michael G Schwern via
RT<bug-IO-All-LWP@rt.cpan.org> wrote:
Show quoted text> Sat Jun 20 00:55:50 2009: Request 47172 was acted upon.
> Transaction: Ticket created by MSCHWERN
> Queue: IO-All-LWP
> Subject: Support for file URLs
> Broken in: 0.14
> Severity: Wishlist
> Owner: Nobody
> Requestors: mschwern@cpan.org
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=47172 >
>
>
> I'd like support for file URLs.
>