Hello,

On 12/24/2010 06:45 PM, Uri Guttman wrote:
"JH" == Jugurtha Hadjar<jugurtha.had...@gmail.com>  writes:

   JH>  my @data   =0;
   JH>  my @fields =0;
   JH>  my @val    =0;

that has to be wrong. that is setting the arrays to a list with the
element 0, not an empty list.

Exactly. I tried to do something like

my @data = (0, 0, 0, 0, 0);

It's not even fun to write, and it didn't make sens at all so it had to be wrong .. What if it was a list of 100 ? I just killed it to my @data= 0;

But as you and Shawn H Corey pointed out, an empty list was the thing to do.

My best,


~Jugurtha,




--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to