Leser: 20
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!perl6 use v6; my %hash = classify { chr $_ }, 97..102; my Int $eins; my Int $zwei; sub routine ( $a, $b ) { ( $eins, $zwei ) = %hash{$a, $b}; return $eins, $zwei; } routine( 'a', 'c' ).perl.say;
1
2
3
4
Type check failed for assignment
in '&infix:<=>' at line 1
in 'routine' at line 1
in main program body at line 14:./perl.pl
{"a" => [97], "b" => [98], "c" => [99], "d" => [100], "e" => [101], "f" => [102]}