Don't ask to ask, just ask | |
PerlMonks |
Adding and Multplying Elements in an Arrayby Dru (Hermit) |
on Jun 18, 2003 at 01:12 UTC ( [id://266693]=perlquestion: print w/replies, xml ) | Need Help?? |
Dru has asked for the wisdom of the Perl Monks concerning the following question:
Yes, this is homework. I can add each number in an array just fine doing this:
But can someone tell me why I can't multiply each element in an array with the folliwing (I'm getting the error message Use of uninitialized value in multiplication (*)): Thanks,
Back to
Seekers of Perl Wisdom
|
|