Re: [perl #62164] Smartmatch dies when comparing a Str and an Array

2009-01-11 Thread Илья
Hi there, some additional information about that bug (I trying to found workaround): if ~~ /'a'/ { say "Yay" } # so Array ~~ Regex works properly ( Regex ~~ Array still broken) ":)".say if ~~ 'a' # nothing :( ":(".say if ~~ 'a b c' # :( # looks like arrays flattening (old bug again) here ihr

Re: [perl #62164] Smartmatch dies when comparing a Str and an Array

2009-01-11 Thread Илья
Hi, ah, and this bug broke my code : I was using Str ~~ Array, Regex ~~ Array and it works properly before. > ":)".say if 'a' ~~ Non-dwimmy hyperoperator cannot be used on arrays of different sizes or dimensions. > ":)".say if /b/ ~~ Non-dwimmy hyperoperator cannot be used on arrays of different