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

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



H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now
Logo
Center