Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^4: going through an array

by steves (Curate)
on Nov 21, 2004 at 03:10 UTC ( #409313=note: print w/ replies, xml ) Need Help??


in reply to Re^3: going through an array
in thread going through an array

And the trailing "\n" will cause your numeric comparison to never get a match.


Comment on Re^4: going through an array
Re^5: going through an array
by chromatic (Archbishop) on Nov 21, 2004 at 04:08 UTC

    It shouldn't matter. Can you post a test case that demonstrates that it does?

    #! perl use strict; use warnings; use Test::More tests => 1; my $x = 100; my $y = 100 . "\n"; cmp_ok( $x, '==', $y, 'numeric comparison should numify SVs' );

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2014-12-26 20:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (175 votes), past polls