This language bar is your friend. Select your favorite languages!
Edit summary for version 2 :

Version 1

Version 2

Idiom #3 Create a procedure

Like a function which doesn't return any value, thus has only side effects (e.g. Print to standard output)

Idiom #3 Create a procedure

Like a function which doesn't return any value, thus has only side effects (e.g. Print to standard output)

Code
sub myProcedureName {
    # Get subroutine arguments
    my ($arg1, $arg2, @rest) = @_;

    # do stuff
    return $result;
}