# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #125677]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=125677 >


<Begi> my $key = prompt('> '); @letters.rotate($key)
<Begi> Why should I convert $key to Int ?
<PerlJam> Begi: do you really mean to ask, why doesn't Perl do it for me?
<Begi> perljam : yes
<PerlJam> I dunno
<PerlJam> I suppose it could
<masak> PerlJam: I don't understand. what's Perl not doing here?
<jnthn> m: my @a = 1..10; say @a.rotate(2)
<camelia> rakudo-moar f971db: OUTPUT«3 4 5 6 7 8 9 10 1 2␤»
<jnthn> m: my @a = 1..10; say @a.rotate('2')
<camelia> rakudo-moar f971db: OUTPUT«Type check failed in binding $n;
expected 'Int' but got 'Str' [...]
<jnthn> Not Cool
<masak> yeah, I'd say that's very uncool.
* masak submits rakudobug

Reply via email to