To simplify your table you could expand the RHS to include an ||$2.$TABLE='a'; #or whatever the default set is s/(?:\x1B([abcs])(?{$TABLE=$^N}))?(.)/${$TABLE}{$2}/e
Mmmm symbolic references.
UPDATE: You could of course "legitimize" that and use $TABLES{$TABLE}->{$2}
--
In Bob We Trust, All Others Bring Data.
In reply to Re: Shooting at a Moving Target
by belg4mit
in thread Shooting at a Moving Target
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |