Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by eff_i_g (Curate)
on Apr 13, 2011 at 13:18 UTC ( #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 (Friar) 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
Node Status?
node history
Node Type: note [id://899184]
help
Chatterbox?
Discipulus is lazily looking his automated migration in backgound and has lot of free tiime..
Discipulus 'Thou art so fat-witted with drinking of old sack..' ++Shakespeare

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2017-11-23 11:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (334 votes). Check out past polls.

    Notices?