simplifying the code to: 3 ~~ [split //, $a];% perl -MO=Deparse -e '1 ~~ @{[1,2]}' Smartmatch is experimental at -e line 1. 1 ~~ \@{[1, 2];}; -e syntax OK
In reply to Re^2: Using smartmatch with split function
by trizen
in thread Using smartmatch with split function
by gurpreetsingh13
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |