Help for this page

Select Code to Download


  1. or download this
    sub my_find_or_create {
      # ...
    ...
      # ...
      return $new_result;
    }
    
  2. or download this
    return $x if (defined (my $x=foo()));
    # or
    defined (my $x = foo()) && return $x;
    
  3. or download this
    if (defined (my $x=foo())) { return $x }