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.
In reply to Re: rel2abs of a path with env
by stevieb
in thread rel2abs of a path with env
by ovedpo15
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |