# New Ticket Created by Zoffix Znet # Please include the string: [perl #130271] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=130271 >
This code crashes with "Cannot unbox a type object (Any) to a str". The problem goes away, if I change $^stuff to $_ or to $^stuff.List or to |$^stuff my $materials = bag flat 'wood' xx 300, 'glass' xx 100, 'brick' xx 3000; my @wanted = bag(flat 'wood' xx 200, 'glass' xx 50, 'brick' xx 3000) but "house", bag(flat 'wood' xx 100, 'glass' xx 50) but "shed", bag( 'wood' xx 50) but "dog-house"; say 'I can build...'; .put for @wanted.combinations.grep: { $materials ≽ [⊎] $^stuff };