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

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

Thread Previous | Thread Next
From:
Aristotle Pagaltzis
Date:
January 26, 2011 04:23
Subject:
Re: Using smart matching to find whether an array contains a string
Message ID:
20110126122340.GG16918@klangraum.plasmasturm.org
* Ed Avis <eda@waniasset.com> [2011-01-26 13:05]:
> But I don't see that 'string equality' is the semantics?
>
>     % perl -E '@a = (1, 2, 3); $s = "@a"; say(@a ~~ $s)'

I am not sure what this is supposed to demonstrate, It does not
look like it tests anything that one would ever want to test.
I get the impression that you have misunderstood something(s)
more fundamental, rather than that the table of behaviours is
confusing.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

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