sub getSum { my $a = shift; my $b = shift; return $a + $b; } my $x = getSum(2, 3);