Help for this page

Select Code to Download


  1. or download this
     my($value) = map { defined() ? $_ : 1 } getConfigValue( "use_foo" );
    
  2. or download this
    my $value = do { defined(local $_ = getConfigValue( "use_foo" )) ? $_ 
    +: 1 };
    
  3. or download this
    sub default {
         my $v = shift;
    ...
    }
    
    my $value = default(getConfigValue( "use_foo" ), 1);