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

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -