Okay, it's official. I kicked ansi's ass. Right after I kicked my own, that is. I'm a moron, and I was having a forest vs. trees moment. The entire issue had to do with the fact that it wasn't evaluating the regular expression I was using for substitution properly, because I had set the wrong flags.
It also was being evaluated by pulling from a hash value.
If all of this is too geeky for you, let me boil it down: I'm an idiot. I fixed it.
For the geeky amongst you, it's the difference between:
$arg =~ s/\%xh/$ansi{"HILITE"}/ge;
AND
$arg =~ s/\%xh/\033[1m/g;
The latter works, the former didn't. Problem solved, now on to my next challenge.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment