http://qs321.pair.com?node_id=569485


in reply to URI plus File::Spec::Unix -- good idea or bad?

Check URI::file. It seems to suit your needs.

Update: Sorry, misread the OP. Anyways, it has a hint about it:

If you simply want to construct file URI objects from URI strings, use + the normal URI constructor. If you want to construct file URI object +s from the actual file names used by various systems, then use one of + the following URI::file constructors: ...

Igor 'izut' Sutton
your code, your rules.