Optional parameters: Difference between revisions

Content added Content deleted
(add JavaScript)
(→‎{{header|Perl}}: Rewrote 212.249.2.158's addition to be a bit more precise and a bit less anti-Perl.)
Line 497: Line 497:


=={{header|Perl}}==
=={{header|Perl}}==
Perl does not have a way of specifying function arguments so all function arguments must be processed manually.
Perl has no formal parameters, so all function arguments must be processed in the function body.


This function expects its first argument to be a reference to an array of arrays. It interprets any remaining arguments as a hash of optional parameters.
This function expects its first argument to be a reference to an array of arrays. It interprets any remaining arguments as a hash of optional parameters.