|There's more than one way to do things|
Not very perlish?by Anonymous Monk
|on Jun 10, 2002 at 09:23 UTC||Need Help??|
Anonymous Monk has asked for the
wisdom of the Perl Monks concerning the following question:
My program accepts 3 percentile inputs ($pre, $amble, $post ) which should sum to 100, if they don't I wish to correct them such that they do.
If the sum is greater than 100 I wish to favour amble, then pre, then post.
If the sum is less than 100, post takes up the slack;
The following achieves my aim, but it doesn't seem very elegant (perlish), and I am sure that it can be improved upon.
When is p the complement of ch?
When in the company of Erlish!