programming-examples/perl/Subroutine/Define subroutine then use it.pl
2019-11-15 12:59:38 +01:00

10 lines
124 B
Raku

sub addem
{
($value1, $value2) = @_;
$value1 + $value2;
}
$value = addem 2, 2;
print "2 + 2 = $value\n";