-
Perl Operator Resource
+ Addition
- Subtraction, Negative Numbers, Unary Negation
* Multiplication
/ Division
% Modulus
** Exponent
= Normal Assignment
+= Add and Assign
-= Subtract and Assign
*= Multiply and Assign
/= Divide and Assign
%= Modulus and Assign
**= Exponent and Assign
++ Increment (Add 1)
-- Decrement (Subtract 1)
. Concatenate Strings
.= Concatenate and Assign
-
Someone is getting a little slap-happy with the code bank.
That aside, have you tried this:
Code:
my $foo = "a";
print ++$foo;
Just fun with operators.
-
I wanted my liabrary accessable from anywhere =)
Thats interesting..ill try it