develooper Front page | perl.perl5.porters | Postings from January 2011

Re: Using smart matching to find whether an array contains a string

Thread Previous
From:
Ed Avis
Date:
January 26, 2011 05:19
Subject:
Re: Using smart matching to find whether an array contains a string
Message ID:
loom.20110126T141737-379@post.gmane.org
Aristotle Pagaltzis <pagaltzis <at> gmx.de> writes:

>The very idea of smart matching fundamentally clashes with Perl 5
>on this point, since it is supposed to look at the type of its
>argument to figure out what kind of comparison operator to use to
>establish boolean truth.

Or in other words, Larry was wise to create two separate equality operators
== and eq.

-- 
Ed Avis <eda@waniasset.com>


Thread Previous


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