Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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.