in reply to Outputing Colour to Screen

You can use: print $colour, "$num ";