to append to the end of a string you use the concatenation operator '.=' but it all depends on the structure of the data you are adding. If the string to add is already formatted exactly how you need it:
$foo = 'this';
$bar = 'that';
$foo .= $bar;
print $foo;
as ozo showed above there are numerous ways to append data to a string.
Main Topics
Browse All Topics





by: ozoPosted on 2006-11-17 at 03:03:37ID: 17963989
You can do it like this: m,Jeff'. y'; m,Jeff garry,tom, Jeff', y';
my $MAILRCP = 'john,anna,steven,garry,to
'alia'.'mike'.'guna'.'larr
or like this:
my $MAILRCP = 'john,anna,steven,garry,to
alia,mike,guna,larry';
or like
my $MAILRCP = join",",'john,anna,steven,
'alia','mike','guna','larr
Depending on what you want the string to contain