in reply to Having a "default" hash value!
Also, it looks like you're keeping the open-angle-bracket but deleting the close-angle-bracket -- is that intentional, or a bug?
Here's how I would do it (assuming the close-angle-bracket should be kept):
my $openesc = "\e[31m"; my $closesc = "\e[0m"; s/^(.*<)\:([a-z]+)/$1$openesc$2$closesc/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Having a "default" hash value!
by Ace128 (Hermit) on Mar 03, 2006 at 07:40 UTC | |
by graff (Chancellor) on Mar 03, 2006 at 08:05 UTC | |
by Ace128 (Hermit) on Mar 04, 2006 at 17:58 UTC |