Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: Two simple code style advice questions

by Anonymous Monk
on Jan 16, 2013 at 14:20 UTC ( #1013580=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Two simple code style advice questions
in thread Two simple code style advice questions

Now what do you mean by that? What is it that you expect and how is it unsafe?


Comment on Re^4: Two simple code style advice questions
Re^5: Two simple code style advice questions
by Anonymous Monk on Jan 16, 2013 at 14:37 UTC

    The issue is that the code relies on true being represented by numeric one. While that works for numeric comparisons, it is not a safe assumption in general. So applying this construct to other kinds of tests could be dangerous.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (14)
As of 2014-08-28 16:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (264 votes), past polls