#TIL about #perl defined-or operator //. This will evaluate $ENV{HOME} and return ...

Words
26
Reading
1 min
2y
Listen to this post
~1 min

... it if it's defined. Otherwise will evaluate $ENV{LOGDIR} and return that if defined and so on.
Basically coalesce operator for undef values.



#TIL about #perl defined-or operator //. This will evaluate $ENV{HO... | Ecency