|
-
Jun 2nd, 2003, 08:35 AM
#1
Thread Starter
Evil Genius
Perl: Concatenation?
Hi all!
Code:
$var1="hello";
print $var1;
How can I concatenate another string onto that sample above?!?!? - i.e. get this kind of thing to work please?
Code:
$var1="hello";
print $var1 & " world!";
Cheers!
-
Jun 3rd, 2003, 09:26 AM
#2
Addicted Member
. is the Perl string concatenation operator.
Code:
print $myVar . " foo";
'Course, it has been a while since I've had the luxury of using Perl, so I may be remembering things wrong. In which case, see my signature.
Travis, Kung Foo Journeyman
Web Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.5 Guide and Reference
Perl: Documentation, Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
OSS: Mozilla, MySQL (Manual)
-
Jun 3rd, 2003, 09:42 AM
#3
Thread Starter
Evil Genius
Ah right, thanks for that!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|