in reply to Re^2: rel2abs of a path with tilda
in thread rel2abs of a path with tilda

Yes, after replacing it's not a relative path anymore.

Most probably there is a module doing all this.

Look into File::Path and similar namespaces on CPAN

EDIT

have a look into Path::Tiny, it seems to do the job

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery