Loading Open Source contents...
Now that you've got the basics of the language down, this secondarticle in the series teaches you about Perl's variables and operators, andalso introduces you to conditional expressions.
$a = "The";
$b = "Incredible";
$c = "Shrinking";
$d = "Violet";
$result = $a . $b . $c . $d;
print "Here's one possibility - $result\n";
$result = $c . $a . $b . $d;
print "And here's another - $result\n";
$a = "Loser!\n";
$insult = $a x 7;