While you remain pre-5.10, you might like this technique:
use List::Util qw( first ); my $theme = first { defined $_ } ( $global_config->{modes}{$current_mode}{theme}, $theme_config->{current_theme}, $default_theme, 'none', );
In reply to Re: Sequential defined-or operators
by Util
in thread Sequential defined-or operators
by naikonta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |