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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: rel2abs of a path with env
by ovedpo15 (Pilgrim) on Jun 07, 2021 at 14:27 UTC | |
by parv (Parson) on Jun 07, 2021 at 21:37 UTC | |
by marinersk (Priest) on Jun 07, 2021 at 14:40 UTC | |
by Anonymous Monk on Jun 07, 2021 at 16:49 UTC | |
by ikegami (Patriarch) on Jun 09, 2021 at 05:55 UTC |
In Section
Seekers of Perl Wisdom