Help for this page

Select Code to Download


  1. or download this
    my $string .= 'appended stuff' if ($conditional1);
    
  2. or download this
    my $string = $string . 'appended stuff' if ($conditional1);
    #which is basically (or is it not and that's the problem?):
    my $string = undef . 'appended stuff' if ($conditional1);
    
  3. or download this
    my $conditional1 = 0;
    my $string = 'blah' if $conditional1;
    # $string is undef