<[EMAIL PROTECTED]> asked: > the code > > print MU color 'bold', "BLAH BLAH BLAH \n"; > > is not working with error: > > > Uncaught exception from user code: > Invalid attribute name media at > disk_cache-tape_slot-usage.pl line > 45 > Carp::croak('Invalid attribute name media') called at > /usr/perl5/5.6.1/lib/Term/ANSIColor.pm line 119 > Term::ANSIColor::color('bold', 'Media Usage Key for all ASM > clients:', ' ', '17:35 05/26/05^J') called at
OTTOH the problem is your "lazy" syntax - Term::ANSIColor::color seems to pick up arguments that should go to print(). You can fix this by bracketing the argument to color, i.e.: print MU color('bold'), "BLAH BLAH BLAH \n"; HTH, Thomas -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>