![]() |
|< 1 2 3 >| | ![]() |
21 Einträge, 3 Seiten |
murphy+2008-10-02 14:11:25--Schade eigentlich, dass es nicht auch Prototypen für optionale Parameter und Schlüsselwortparameter gibt...
sub test ($;$);
QuoteA semicolon (;) separates mandatory arguments from optional arguments. It is redundant before @ or %, which gobble up everything else.
QuoteAs the last character of a prototype, or just before a semicolon, you can use _ in place of $: if this argument is not provided, $_ will be used instead.
![]() |
|< 1 2 3 >| | ![]() |
21 Einträge, 3 Seiten |