#my $a="test1"; my $b="test2"; # Wenn $a nicht vorhanden, erstelle es halt, aber leer my $a // $a; if (length($a) > 0) { $b=$a.$b; }