
spc1to3
New User
Aug 8, 2012, 8:24 PM
Post #1 of 3
(1247 views)
|
join or concatenating a string
|
Can't Post
|
|
I would like to join a specific string with numbers: My data: LC 4 ..... LC 23120 ...LC 53347 etc. My data is more complex than that with other words before and after the list above. So I wrote: #!/usr/bin/perl $string = join( "", "LC ", "4" ); Print "Joined String is $string\n"; and the result is: Joined String is LC 4 Instead of Joined String is LC4 How can I remove the white space between LC and numbers so it would look like this: LC53347 ? Thank you. [:/]
|