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

Re: (elbie): Interpreting values alternately as $trings and Integers = confused response by Perl

by premchai21 (Curate)
on Apr 15, 2002 at 01:09 UTC ( #159058=note: print w/ replies, xml ) Need Help??


in reply to (elbie): Interpreting values alternately as $trings and Integers = confused response by Perl
in thread Interpreting values alternately as $trings and Integers = confused response by Perl

I agree that the quotes should probably be removed, but for reasons of clarity -- that is, people are likely to glance at the code and accidentally interpret the == as an eq due to seeing quotes. == does "true numerical comparison" whether or not there are quotes there; the string gets converted to a number for the ==, and it DWYM.


Comment on Re: (elbie): Interpreting values alternately as $trings and Integers = confused response by Perl

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://159058]
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: (8)
As of 2015-07-08 06:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls