develooper Front page | perl.beginners | Postings from February 2002

Re: Difference between == and eq

Thread Previous | Thread Next
From:
Brett W. McCoy
Date:
February 6, 2002 07:10
Subject:
Re: Difference between == and eq
Message ID:
Pine.LNX.4.43.0202061018040.14577-100000@chapelperilous.net
On Wed, 6 Feb 2002, wim wrote:

> I have a small question: what's the difference between == and eq?

== is for numeric comparisons, eq is for textual comparisons.

See perldoc perlop

-- Brett
                                          http://www.chapelperilous.net/
------------------------------------------------------------------------
honeymoon, n.:
	A short period of doting between dating and debting.
		-- Ray C. Bandy


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About