Tuesday, June 19, 2012

Perl – Manipulation of Strings

Concatenation of strings:
Example 1: Print “win”.”dow”   // It will print out “window”
 Example 2: $name = “sussy”
$sentence = “ask”.$name.”aout the job.”

Multiple strings display:
Print ‘w’x10
It will display 10 w in row
wwwwwwwwww

To display $ in the string:
Print “\$hello how r u”
It will display a:
$hello how r u

No comments:

Post a Comment