Help for this page

Select Code to Download


  1. or download this
    use autobox::Core;
    use Class::Null;
    sub UNIVERSAL::andand { return defined $_ ? $_ : Class::Null->new for 
    +shift }
    
  2. or download this
    for ( grep $_, $shop->ShopperDueDate ) { say $_->day_name() }
    
  3. or download this
    sub iftrue { for ( grep $_, $_[0] ) { $_[1]->() } }
    
    iftrue $shop->ShopperDueDate, sub { say $_->day_name() };
    
  4. or download this
    sub cond(&$) { for ( grep $_, $_[1] ) { $_[0]->() } }
    
    cond { say $_->day_name() } $shop->ShopperDueDate;