1. Home
  2. Computing & Technology
  3. Perl

Concatenation

From About.com

Definition: Concatenation occurs when you glue two or more bits of data together in a chain to create a new value:
$myVariableOne = "some data";
$myVariableTwo = "and more data";
print $myVariableOne . " " . $myVariableTwo;
This outputs "some data and more data". The concatenation operator in this case is the period, and acts as the glue.
Explore Perl
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Perl
  4. Getting Started
  5. Programming Glossary
  6. Concatenation

©2009 About.com, a part of The New York Times Company.

All rights reserved.