#!/usr/bin/perlusestrict;usewarnings;usefeature'say';NUMBER:formy$n(100...999){my%product;my($x,$y,$z)=split//,$n;$product{$_}++for($x,$y,$z,$x*$y,$y*$z,$x*$y*$z);# If all of those products are different, then the hash# will have exactly six keyssay"$n is colourful"ifkeys%product==6;}