Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Tutorial on arguments for the new

by traveler (Parson)
on Dec 11, 2006 at 23:58 UTC ( [id://589189]=note: print w/replies, xml ) Need Help??


in reply to Tutorial on arguments for the new

One might also note that arguments are the values that fill parmeters. So if we have
. . . foo("square", 3); . . . sub foo{ my ($shape, $size) = @_; . . .
$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.

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
    Duly noted and adjusted.
    C(qw/74 97 104 112/);sub C{while(@_){$c**=$C;print (map{chr($C!=$c?shift:pop)}$_),$C+=@_%2!=1?1:0}}

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://589189]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-25 20:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found