#TIL about #perl defined-or operator //. This will evaluate $ENV{HOME} and return ...
Words
26
Reading
1 min
Listen
Play
2y
... it if it's defined. Otherwise will evaluate $ENV{LOGDIR} and return that if defined and so on.
Basically coalesce operator for undef values.