in reply to What is the right way of concatenating strings

What exactly does the error/warning message say? My blind guess is that it says something about an uninitialized value, meaning that $input and/or $temp is undef.

Are you doing use strict; ?

People commonly do one of these:
$input = $input . $temp; $input = "$input$temp";

Replies are listed 'Best First'.
Re^2: What is the right way of concatenating strings
by cool (Scribe) on May 02, 2006 at 08:58 UTC
    Your guess is right, its the same err msg. no i am not using strict.