Think about Loose Coupling  
PerlMonks 
Calculating polynomials and pushing them into an array. Stuck at one part. please helpppp!!by freekngeek (Acolyte) 
on Jan 22, 2013 at 14:28 UTC ( #1014677=perlquestion: print w/ replies, xml )  Need Help?? 
freekngeek has asked for the
wisdom of the Perl Monks concerning the following question:
Hi all, I am calculating polynomial values and then pushing those values into an array. For execution I am using this subroutine :
And this is I am pushing values to the array.
I am reading all the polynomial equations from the text file and all of them are they stored in hashes. So that means 11 is one equation, 21 is another and so on. I am using the above script for 3 different equations, I am getting output from the last two and undef from the first one which is 11. Here's the output when I do print dumper (\@CompareValues);
I guess it's easy to do but I have no idea what am I doing wrong here and what's wrong because I am getting values for other equation. I would like to know what's wrong with this code, I'll be glad if some of few could help me. Thanks.
Back to
Seekers of Perl Wisdom

