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

Popular posts from this blog

ruby on rails - Devise Logout Error in RoR -

model view controller - MVC Rails Planning -

php - Working with pretty urls on apache and fastcgi after hhvm installation -