Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Outputing Colour to Screen

by gothic_mallard (Pilgrim)
on Oct 22, 2004 at 15:35 UTC ( [id://401522]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://401522]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-25 14:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found