Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: rel2abs of a path with env

by stevieb (Canon)
on Jun 07, 2021 at 14:14 UTC ( [id://11133619]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    my $path = path("/a/b/c/$ENV{USER}")->absolute;
    
    print "$path\n";
    
  2. or download this
    spek@scelia ~/scratch $ perl path.pl
    /a/b/c/spek
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (8)
As of 2024-04-23 09:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found