Help for this page

Select Code to Download


  1. or download this
    sub assign_if_defined {
       $_[0] = $_[1] if defined $_[1];
    }
    
    assign_if_defined($a->{'b'}, $b);
    
  2. or download this
    sub { $_[0] = $_[1] if defined $_[1]; }->($a->{'b'}, $b);