On Mon, Nov 22, 2004 at 03:40:41AM -0000, [EMAIL PROTECTED] wrote:
> +    if (@s && @h) {
> +      my $ratio = @s / @h;
> +      while (@s && @h) {
> +     push @messages, (@s / @h > $ratio) ? (shift @s) : (shift @h);

-1

this doesn't take into account when @h == 0.  it'd be easy to do a ternary for
$ratio to solve this.

-- 
Randomly Generated Tagline:
"Besides, I think [Slackware] sounds better than 'Microsoft,' don't you?"
 (By Patrick Volkerding)

Attachment: pgp9vfRPEgQKe.pgp
Description: PGP signature

Reply via email to