Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 lurking in the Monastery: (3)
As of 2014-07-25 00:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (167 votes), past polls