Results 1 to 3 of 3

Thread: Perl Operator Resource

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517

    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

  2. #2
    Addicted Member
    Join Date
    Sep 2002
    Location
    Durham, NC, US
    Posts
    218
    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)

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    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
  •  



Click Here to Expand Forum to Full Width