Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Answer: How do I concatenate a string?

( #32431=categorized answer: print w/ replies, xml ) Need Help??

Q&A > strings > How do I concatenate a string? contributed by ar0n

As merlyn so eloquently put it ;), use the '.' operator:
my $foo = "Foo"; my $bar = "Bar"; my $str = $foo . $bar; print $str;
Which of course will print "FooBar".

Comment on Answer: How do I concatenate a string?
Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2014-09-22 18:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls