端末制御文字を HTML タグに置き換えるにはどうすればよいですか?
my ($black,$red,$green,$reset) = ('^[[30m','^[[38m','^[[92m','^[[0m');
my $LogString = $red.'red'.$reset;
printf ("%s\n",$LogString);
$LogString =~s/$red/<font color="red">/g;
$LogString =~s/$reset/<\/font>/g;
printf HTML ("%s\n",$LogString);