Multiple Arguments
- Perl has no types -- you won't declare the same function for two args, three args, and so on
- Let's build the maximum function
$max = &maximum( 4, 28, 3, 8 );
| CPU: Perl, Fall 2005 | Perl, Week 3: More Arrays, Context, Subroutines, Lexical Variables | #51 |
$max = &maximum( 4, 28, 3, 8 );
| Copyright © 2005 Ian Langworth |