in reply to Re^2: rel2abs of a path with env
in thread rel2abs of a path with env

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.
The cake is a lie.
The cake is a lie.