in reply to bold color text and export to file

You could start with Term::ANSIColor. Insert the ANSI-sequences for red/bold at the start of a sequence to be highlighted and switch back to normal at the end of the sequence.