On 27/11/2010 18:16, Téssio Fechine wrote:

Smart match operator was commutative the first time it was introduced.
So "@divisors ~~ 2" would search for 2 in the list of divisors..
For any reason smart match is not commutative anymore, so the right syntax now is "2 
~~ @divisors"..

The problem is that the syntax has changed.

Yes. The smart match operator was commutative only in version 5.10 of perl. The change was made in the very next release - version 5.10.1.

- Rob

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to