use strict; use warnings; use 5.010; my @numbers = (2); my @other = (2); if (@numbers ~~ @other) { say 'yes' }else{ say 'no'; } #output: yes if (@numbers ~~ (2)) { say 'yes' }else{ say 'no'; } #output: yes
2. This is my perl -v:
This is perl, v5.10.0 built for i486-linux-gnu-thread-multi
3. Could you post here the output of your perl -v?
In reply to Re: smart match operator should be smarter!
by Jorge_de_Burgos
in thread smart match operator should be smarter!
by 7stud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |