Help for this page

Select Code to Download


  1. or download this
    my $input = 'hello';
    my $temp  = 'world';
    $input = "$input $temp";
    
  2. or download this
    my $input = 'hello';
    my $temp  = 'world';
    $input = $input . ' ' . $temp;
    
  3. or download this
    my $input = 'hello';
    my $temp  = 'world';
    $input .= ' ' . $temp;
    
  4. or download this
    my $input = 'hello';
    my $temp  = 'world';
    $input = join(' ', $input,$temp);
    
  5. or download this
    my $input = 'hello';
    my $temp  = 'world';
    ...
    push @temp, ' ';
    push @temp, $_ for split('', $temp);
    $input = join('',@temp);