Numeric and String variable operations (Perl)

From ben.goodacre.name/tech

Jump to: navigation, search

Numeric Variable operations

Increment: $num++;
Decrement: $num--;
Add $b to $a: $a += $b;
Subtract $b from $a: $a -= $b;

String Variable operations

Put two strings together: $a = $b . $c;
Append to variable: $d .= "appended text";

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox