in reply to
Negating a number
$x = $x * (-1);
or
$x *= -1;
holli
When you're up to your ass in alligators, it's difficult to remember that your original purpose was to drain the swamp.
Comment on
Re: Negating a number
Select
or
Download
Code
In Section
Seekers of Perl Wisdom