use strict; use warnings; use File::Spec; # print a path that is system independent print "The dir is ", File::Spec->rel2abs("./foobar"), "\n";