Presumably the edge cases you described are solved in one or more of these modules. I haven't looked myself, but you did ask for module fu. The first one claims to work on any platform for instance.
Cheers - L~R
In reply to Re: Improve perlfaq5: How can I translate tildes (~) in a filename?
by Limbic~Region
in thread Improve perlfaq5: How can I translate tildes (~) in a filename?
by brian_d_foy
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |