Hi there, some additional information about that bug (I trying to found workaround):
if <a b c> ~~ /'a'/ { say "Yay" } # so Array ~~ Regex works properly ( Regex ~~ Array still broken) ":)".say if <a b c> ~~ 'a' # nothing :( ":(".say if <a b c> ~~ 'a b c' # :( # looks like arrays flattening (old bug again) here ihrd 2009/1/11 Илья <fori...@gmail.com>: > Hi, > ah, and this bug broke my code : > I was using Str ~~ Array, Regex ~~ Array and it works properly before. > >> ":)".say if 'a' ~~ <a b c> > Non-dwimmy hyperoperator cannot be used on arrays of different sizes > or dimensions. >> ":)".say if /b/ ~~ <a b c> > Non-dwimmy hyperoperator cannot be used on arrays of different sizes > or dimensions. > > I can write some tests if that is necessary > > 2009/1/11 via RT Carl Mäsak <perl6-bugs-follo...@perl.org>: >> # New Ticket Created by "Carl Mäsak" >> # Please include the string: [perl #62164] >> # in the subject line of all future correspondence about this issue. >> # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=62164 > >> >> >> <masak> perl6: say "foo" ~~ ["foo", "bar"] >> <p6eval> ..rakudo 35339: OUTPUT«Non-dwimmy hyperoperator cannot be >> used on arrays of different sizes or dimensions [...] >> <pmurias> masak: i guess it's a bug as ~~ is *not* a hyperop >> <masak> hm, you're right. >> * masak submits rakudobug >> >