in reply to Re^10: Computing results through Arrays
in thread Computing results through Arrays

Hello yasser8@gmail.com,

The problem here is in this line:

print fnd_max %m

You see, the fnd_max sub requires a hashref, while you're passing a full hash into it. Also, why are you using prototypes for your subroutine? Unless you're using v5.20, where subroutine signatures were introduced, don't use them. To correct your problem, change the %m to \%m - make it clear that it's a sub call, print fnd_max(\%m). Not really important, this is just my convention.