in reply to sub min is not working

You need to capture the results returned from your subroutines
my $av = aver(); my $min = min();
Then just make sure to return a value in your min subroutine.
sub min { my @num = @_; my $min; ... return $min; }

Finally, you would be much better off if you had use strict at the beginning of your code.

- Miller