3
use Test::More tests => 5;
7
sub foo ($bar) { $bar }
9
sub korv ($wurst, undef, $birne) {
10
return "${wurst}-${birne}";
13
sub array ($scalar, @array) {
14
return $scalar + @array;
21
sub Name::space ($moo) { $moo }
23
is(foo('baz'), 'baz');
24
is(korv(qw/a b c/), 'a-c');
25
is(array(10, 1..10), 20);
27
[sort(hash(foo => 1, bar => 2))],
31
is(Name::space('kooh'), 'kooh');