sub sum {
return $_[0] + $_[1];
}
Or you could declare it this way:
sub sum
{
return $_[0] + $_[1];
}
This very trivial distinction somehow manges to generate
serious discord among some developers. The latter is familiar to
programmers who have written a lot of C, while the former is more
common in Perl.