in reply to Why is this comparison failing?

Things to try.

  1. use warnings;
  2. Don't perform operations on $_. Assign to your own var and operate on that.
  3. For my $next_hue ( @hues ) would be safer than a for loop.

Neil Watson
watson-wilson.ca