PDA

Click to See Complete Forum and Search --> : Perl Operator Resource


Evan
Feb 2nd, 2004, 03:02 PM
+ 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

Travis G
Feb 2nd, 2004, 10:12 PM
Someone is getting a little slap-happy with the code bank.

That aside, have you tried this:my $foo = "a";
print ++$foo;
Just fun with operators.

Evan
Feb 3rd, 2004, 11:11 AM
I wanted my liabrary accessable from anywhere =)

Thats interesting..ill try it