From: "Leon" <[EMAIL PROTECTED]>
> ----- Original Message -----
> From: "Jenda Krynicky" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, November 26, 2001 4:44 AM
> Subject: Re: @_
>
> > When you cann a function all the parameters you gave it end up in
> > @_. You can (and usualy do) copy them then into some lexical
> > variables to give them meaningfull names. You don't have to
> > though.
>
> ----> If for example <---- you wanted to write a function that sums two
>
> I like your style, in fact I think everybody should follow Jenda's style of
> giving an example after an explanation ; an example paints a thousand words.
>
> > numbers you can write it either as
> > sub add {
> > my ($a, $b) = @_;
> > return $a + $b;
> > }
>
> On the above, so what is @_?
> @_ = ?
As I said. The list of all parameters. It's a "builtin" variable, you do
not have to set it explicitly.
Jenda
=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain.
I can't find it.
--- me
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]