Logo

Programming-Idioms

History of Idiom 3 > diff from v1 to v2

Edit summary for version 2 by :

Version 1

2015-05-06, 21:04:45

Version 2

2015-07-31, 18:50:37

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;
}