Help for this page

Select Code to Download


  1. or download this
    sub definedor
    {
      defined $_[0] ? $_[0] : $_[1]
    }
    
  2. or download this
    sub definedor
    {
      use List::Util qw(first);
      first { defined } @_
    }