CPU: Perl, Fall 2005 Perl, Week 2: Arrays, Hashes, Control Structures #4

Binary Assignment Operators

$color = "blue";
$color = $color . "-green";
$color = "$color-green";
# color is now "blue-green"
$color = "blue";
$color .= "-green";
Copyright © 2005 Ian Langworth