http://www.perlmonks.org?node_id=1006173


in reply to subroutine help

Your code does not compile, and your problem description is wrong.

Your problems have to do with converting between the returned array, and the scalar $weight you assign it to.

Please search this site for responses to Your and your collegues VERY SIMILAR questions over the last few days, and avoid duplicate questions.

             "By three methods we may learn wisdom: First, by reflection, which is noblest; Second, by imitation, which is easiest; and third by experience, which is the bitterest."           -Confucius

Replies are listed 'Best First'.
Re^2: subroutine help
by space_monk (Chaplain) on Nov 29, 2012 at 07:22 UTC
    One wonders if the whole college is signed up to PerlMonks :-)
    A Monk aims to give answers to those who have none, and to learn from those who know more.
Re^2: subroutine help
by perlguru22 (Acolyte) on Nov 29, 2012 at 08:11 UTC
    Sorry I will make sure to look next time