Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Term::ANSIColor - possible to pass color as variable?

by eff_i_g (Curate)
on Apr 13, 2011 at 13:18 UTC ( [id://899184]=note: print w/replies, xml ) Need Help??


in reply to Term::ANSIColor - possible to pass color as variable?

How about this?
use warnings; use strict; use Term::ANSIColor qw(:constants); sub print_debug { print STDERR @_, RESET; } print_debug(BLUE ON_WHITE, 'Test');

Replies are listed 'Best First'.
Re^2: Term::ANSIColor - possible to pass color as variable?
by ultranerds (Hermit) on Apr 13, 2011 at 13:31 UTC
    Ah nice - that did the trick - thanks!

    Andy

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2025-11-13 07:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (68 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.