XP is just a number | |
PerlMonks |
Re^3: rel2abs of a path with envby Fletch (Bishop) |
on Jun 07, 2021 at 14:42 UTC ( [id://11133625]=note: print w/replies, xml ) | Need Help?? |
One thing your version silently strips out any undefined variables; using the /e modifier lets you have an expression rather than just a quoted string so you can do a bit of logic on the RHS of the substitution ...{ $ENV{$1} // qq{MISSING:$1} }e (so you get an indication what's missing).
The cake is a lie.
In Section
Seekers of Perl Wisdom
|
|