Subroutine

Read input parameters

You can use input array - @_ or shift operator.

Shift operator

order of the input parameters must be strictly adhered to:

sub ss {
  $a = shift;
  $b = shift;
  return $a + $b;
}
 
print &ss(4,5);
Navigation
Print/export
Toolbox