in reply to Shooting at a Moving Target
(Pseudo-code) evilness using experimental regexp features might look like:
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Shooting at a Moving Target
by Aristotle (Chancellor) on Feb 14, 2007 at 02:55 UTC | |
by belg4mit (Prior) on Feb 14, 2007 at 03:04 UTC |
In Section
Seekers of Perl Wisdom