# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev # Please include the string: [perl #131272] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=131272 >
Code: say ^5 .BagHash.pickpairs(2.5); Result: (1 => 1 4 => 1) Code: say ^5 .BagHash.pick(2.5); Result: count computed to 2.5, which cannot be used in block <unit> at <tmp> line 1 I find it impossible to predict when non-Int args are alright and when they are not. I would expect consistency of some sort. (same thing with .grab and .grabpairs)