http://qs321.pair.com?node_id=11133624


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

Very odd. Thinking to step ouside of Linux, I tested this on Windows. It appears to have worked correctly for me as well.


SKMDSK06::T:\>perl -V | findstr uname uname='Win32 strawberry-perl 5.32.0.1 #1 Sun Aug 2 19:46:04 2020 +x64'


SKMDSK06::T:\>set user USERDOMAIN=SKMDSK06 USERDOMAIN_ROAMINGPROFILE=SKMDSK06 USERNAME=Steve USERPROFILE=C:\Users\Steve


SKMDSK06::T:\>type test01.pl use strict; use Path::Tiny; my $path = path("/a/b/c/$ENV{USER}")->absolute; print "$path\n";


SKMDSK06::T:\>perl test01.pl T:/a/b/c SKMDSK06::T:\>


Not sure that this helps any, but there it is.