Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: rel2abs of a path with env

by marinersk (Priest)
on Jun 07, 2021 at 14:40 UTC ( [id://11133624]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11133624]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-24 02:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found