in reply to Relative to absolute path

I use File::Spec.
use File::Spec; my $abspath = File::Spec->rel2abs($relpath);
Also see the canonpath() method for cleaning up extra slashes.