-
Feb 2nd, 2004, 03:02 PM
#1
Thread Starter
Frenzied Member
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
-
Feb 2nd, 2004, 10:12 PM
#2
Addicted Member
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.
Travis, Kung Foo Journeyman
Web Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.5 Guide and Reference
Perl: Documentation, Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
OSS: Mozilla, MySQL (Manual)
-
Feb 3rd, 2004, 11:11 AM
#3
Thread Starter
Frenzied Member
I wanted my liabrary accessable from anywhere =)
Thats interesting..ill try it
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|