multi sub what(Int $x) { say "Int" } multi sub what(Str $x) { say "Str" } multi sub what($x) { say "Something else" } what('foo'); # Str what([]); # Something else
« first < prev (15 / 41) next > last »