in reply to Re^2: Pure variable confusion!
in thread Pure variable confusion!

Then what is this
# my $average = average(@_); @average = average(@_);
Where is sub average?

Replies are listed 'Best First'.
Re^4: Pure variable confusion!
by jmvbxx (Novice) on Apr 23, 2015 at 14:20 UTC

    That was my confusion. I calculated the average outside of the subroutine and I didn't know how to utilize it within it.

    Thanks for your help!