http://qs321.pair.com?node_id=377097


in reply to Re: Common Perl Idioms
in thread Common Perl Idioms

# Get the sign of a number
$a <=> 0

Or just use "abs".

Ignore me. I'm talking nonsense.

--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

Replies are listed 'Best First'.
Re^3: Common Perl Idioms
by adrianh (Chancellor) on Jul 25, 2004 at 23:18 UTC
    Or just use "abs".

    Eh?