in reply to Outputing Colour to Screen

Can you tell us more about the problem?

When you say it isn't working - in exactly what way? Is it doing nothing? Is it producing the wrong results? Does it give an error? etc

Not sure what you mean about file handlers as you're not doing anything with files in that code.

Telling us the perl version and OS you're on would be a great help too - especially with any DOS/Terminal et al based scripts.

--- Jay

All code is untested unless otherwise stated.

Replies are listed 'Best First'.
Re^2: Outputing Colour to Screen
by Anonymous Monk on Oct 22, 2004 at 15:38 UTC
    In his code he has no comma (or dot) between $colour and "$num", this makes Perl assume that $colour is a filehandle. which is why he probably gets the error print() on unopened filehandle