you have, say, 3 arguments is
> to say
>
> my ($name, $size, $color) = @_;
>
> this will map the first three args in your args
> array two the variables
> $name, $size, and $color.
>
> I hope this is useful...
>
> -PK
>
> -Original Message-
> Fr
size, and $color.
I hope this is useful...
-PK
-Original Message-
From: zentara [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 22, 2002 6:33 AM
To: [EMAIL PROTECTED]
Subject: Re: Changing row color with subroutine
On Fri, 22 Nov 2002 03:28:39 -0800, [EMAIL PROTECTED] (Poster) wrote:
On Fri, 22 Nov 2002 03:28:39 -0800, [EMAIL PROTECTED] (Poster) wrote:
>Hi, I am having a little trouble with a sub that is using the modulus
>operator.
Yeah, it fooled me too for a bit :-)
The problem is the way you pass the value to the
sub, @_ always is 1, the count of elements in @_.
Change @_