in reply to Re^5: RFC: Tool::Box
in thread RFC: Tool::Box
Expecting to get back the average are going to be suprised if it returns a function (there were no integers in @numbers). Explaining in the POD may not be enough and this is something that requires careful consideration.my @ints = grep { int($_) == $_ } @numbers; my $ave = ave( @ints );
Thanks for the feedback.
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: RFC: Tool::Box
by diotalevi (Canon) on Nov 22, 2004 at 13:48 UTC | |
by Limbic~Region (Chancellor) on Nov 22, 2004 at 13:54 UTC | |
|
Re^7: RFC: Tool::Box
by dragonchild (Archbishop) on Nov 22, 2004 at 14:24 UTC | |
by diotalevi (Canon) on Nov 22, 2004 at 15:10 UTC | |
by Limbic~Region (Chancellor) on Nov 22, 2004 at 14:56 UTC |