in reply to bold color text and export to file

Thank you for your reply

I have used the module Term::ANSIColor and have tried to color the output in the variable $colortext upon matching.

I am trying to keep the terminal formatting in the exported text file

Regards

Replies are listed 'Best First'.
Re^2: bold color text and export to file
by Anonymous Monk on Sep 15, 2014 at 22:01 UTC

    What program(s) do you expect to view the exported text file in?

    Colors applied with Term::ANSIColor will work with cat and less with the -R switch, but not normal text editors.