Problem with Perl and Fedora Core 1

Jeff Macdonald jeff.macdonald at virtualbuilder.com
Mon Feb 16 14:37:21 UTC 2004


On Mon, 2004-02-16 at 10:51 -0300, Alexandre de Abreu wrote:
> Try to use "eq" to compare between numbers. The "==" is used for string 
> comparing. Maybe it isn't getting into the right way.
> 

incorrect. From perldoc perlop:

       Equality Operators
 
       Binary "==" returns true if the left argument is numerically
equal to the right argument.

and

       Binary "eq" returns true if the left argument is stringwise equal
to the right argument.
 

-- 
Jeff Macdonald <jeff.macdonald at virtualbuilder.com>
My birding blog: http://www.virtualbuilder.com/archives/cat_birding.html
Into birding? Visit http://www.migratus.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040216/4ace5b58/attachment-0001.sig>


More information about the fedora-list mailing list