1 2 3 4 5 6 7 8 9
#!perl6 use v6; my $a = 100; my $b = 8; my $c = int( $a / $b ); $c.say;
QuoteCould not find sub &int in main program body at line 7:./perl.p
12345
say ($a / $b).Int;# oder gleich als integer berechnen:say $a div $b;
1 2 3
my Int $s; $s = $a / $b; say $s;
QuoteType check failed for assignment in '&infix:<=>' at line 1 in main program body at line ...:./perl.pl