On 10/9/07, Beginner <[EMAIL PROTECTED]> wrote:
> Can someone explain why there is a 4th, undefined variable being
> declared in test? It appears to work it too.
>
> sub test {
>  my ($function, $description, $var) = @_
> ...
>
> I'm sure there is a reason for it but I can't see it.
> Thanx,
> Dp.

No real reason... If you pass extra variables to test, in your version
it will assign the list of variables to $var. In my version, it will
assign the 3rd parameter to $var and drop the rest.

This is most defenitely not the best way to handle parameters, but it
works for me...

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to