PERL - What Does Negation Mean?

Discussion in 'Programming' started by gobbly2100, Mar 30, 2008.

  1. #1
    Hey,

    I am getting started with Perl but one of the expression operators I don't quite understand.

    What does negation mean?

    It says "Negates the value of a number" but I don't quite understand it.
     
    gobbly2100, Mar 30, 2008 IP
  2. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It means to multiply by -1 (generally, to make negative).
     
    TwistMyArm, Mar 30, 2008 IP