in reply to Tutorial on arguments for the new
$shape and $size function as parmeters that are filled with the arguments "square" and 3. Now, to be accurate, perl5 does not have true formal parameters as do many other languages including perl6. You can get the perl6 behavior using Perl6::Parameters, however. Anyway, in the general computer science nomenclature, arguments are passed to functions into parameters.. . . foo("square", 3); . . . sub foo{ my ($shape, $size) = @_; . . .
It seems that the terms are often used to mean the same thing, but that often rankles some language lawyers and other pendantic individuals.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Tutorial on arguments for the new
by Andrew_Levenson (Hermit) on Dec 12, 2006 at 00:02 UTC |