in reply to Re: Using smartmatch with split function
in thread Using smartmatch with split function

The smartmatch operator takes an array reference as argument:
% perl -MO=Deparse -e '1 ~~ @{[1,2]}' Smartmatch is experimental at -e line 1. 1 ~~ \@{[1, 2];}; -e syntax OK
simplifying the code to: 3 ~~ [split //, $a];