Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Common Perl Idioms

by davorg (Chancellor)
on Jul 24, 2004 at 06:36 UTC ( #377097=note: print w/replies, xml ) Need Help??


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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://377097]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2023-04-01 08:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?