Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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??

Help for this page

Select Code to Download


  1. or download this
    SKMDSK06::T:\>perl -V | findstr uname
        uname='Win32 strawberry-perl 5.32.0.1 #1 Sun Aug  2 19:46:04 2020 
    +x64'
    
  2. or download this
    SKMDSK06::T:\>set user
    USERDOMAIN=SKMDSK06
    USERDOMAIN_ROAMINGPROFILE=SKMDSK06
    USERNAME=Steve
    USERPROFILE=C:\Users\Steve
    
  3. or download this
    SKMDSK06::T:\>type test01.pl
    use strict;
    
    ...
    my $path = path("/a/b/c/$ENV{USER}")->absolute;
    
    print "$path\n";
    
  4. or download this
    SKMDSK06::T:\>perl test01.pl
    T:/a/b/c
    
    SKMDSK06::T:\>
    

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 lurking in the Monastery: (7)
As of 2024-04-16 06:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found