logo       

Re: URI::file not RFC 1738 compliant?: msg#00006

lang.perl.modules.lwp

Subject: Re: URI::file not RFC 1738 compliant?

Bjoern Hoehrmann <derhoermi@xxxxxxx> writes:

> Unhandled Exception: System.UriFormatException: Invalid URI:
> The format of the URI could not be determined.

Ok. URI-1.32 has just been uploaded and it revise how we map filenames
to file URIs. Some examples with the new module:

$ perl -MURI::file -le 'print URI::file->new("foo", "unix")'
foo
$ perl -MURI::file -le 'print URI::file->new("/foo", "unix")'
file:///foo
$ perl -MURI::file -le 'print URI::file->new("foo", "win32")'
foo
$ perl -MURI::file -le 'print URI::file->new("/foo", "win32")'
file:///foo
$ perl -MURI::file -le 'print URI::file->new("//h/foo", "win32")'
file:////h/foo
$ perl -MURI::file -le 'print URI::file->new("c:foo", "win32")'
file:///c:foo
$ perl -MURI::file -le 'print URI::file->new("c:\\foo", "win32")'
file:///c:/foo



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise