Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: What is the best way to compare variables so that different types are non-equal?

by psini (Deacon)
on Jul 19, 2009 at 16:01 UTC ( #781454=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    print $re2 == $re2,"\n";
    print 0+$re,"\n";
    print 0+$re2,"\n";
    
  2. or download this
    sini@ordinalfabetix:~$ ./x.pl
    
    ...
    135589228
    135591376
    sini@ordinalfabetix:~$
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://781454]
help
Chatterbox?
and a log crumbles through the grate...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2017-11-25 00:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (355 votes). Check out past polls.

    Notices?