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

2009-02-13 Thread jn...@jnthn.net via RT
On Sun Jan 11 04:36:44 2009, ihrd wrote: > Hi, > ah, and this bug broke my code : > I was using Str ~~ Array, Regex ~~ Array and it works properly before. > > > ":)".say if 'a' ~~ Now gives no output, which is the correct thing. If you were expecting different, your code is wrong. :-) Maybe you

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

2009-02-13 Thread jn...@jnthn.net via RT
On Sat Jan 10 08:20:33 2009, masak wrote: > perl6: say "foo" ~~ ["foo", "bar"] > ..rakudo 35339: OUTPUT«Non-dwimmy hyperoperator cannot be > used on arrays of different sizes or dimensions [...] This now works (gives 0). And will reply to next bit of the ticket separately... Thanks, Jonathan

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

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

2009-01-10 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #62164] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62164 > perl6: say "foo" ~~ ["foo", "bar"] ..rakudo 35339: OUTPUT«Non-dwimmy hyperoperator can