Concatenate of string in perl -
Concatenate of string in perl -
i trying concatenate string in perl.
eg:
my $file = $table_name.".sql"; print $file;
i output like:
employee .sql
(considering $table_name =employee )
please suggest how create sure output comes in single lie without blanks.
your $table_name variable contains word 'employee' new line character. can utilize chomp remove newline.
add before concatenate variables:
chomp $table_name;
perl
Comments
Post a Comment