Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (8 sloc) 0.234 kB
=begin pod
=TITLE class Sub
class Sub is Routine { }
A type for subroutines. Subs are created with the C<sub> keyword
my $s = sub ($a, $b) { $a + $b };
say $s.WHAT; # Sub()
say $s(2, 5); # 7
=end pod
Jump to Line
Something went wrong with that request. Please try again.