http://www.perlmonks.org?node_id=11133619


in reply to rel2abs of a path with env

Like this?:

use warnings; use strict; use Path::Tiny; my $path = path("/a/b/c/$ENV{USER}")->absolute; print "$path\n";

Output:

spek@scelia ~/scratch $ perl path.pl /a/b/c/spek

If not, I fail to realize what it is exactly you're after.