One thing I'd like to see is being able to specify qr//d regexes or list
(refs) within this, to be able to give multiple equivlent objects. For
example, the list
("<<" => ">>", "\N{left gimmulet}" => "\N{right gimmulet}") would allow <<
to match >> and « to match ». However, (["<<", "\N{left gimmulet}"] =>
[">>", "\N{left gimmulet}]) would allow pairs <<» and «>> as well. And just
imagine: qr/\P{open quote}/, qr/\P{close quote}/. (If you've got random
funny looking characters, my codepage doesn't match yours. Sorry.)
In any case, I'm of the thought that the synthax should be:
use re 'pairs' LIST; adds the pairs specified in LIST, and
no re 'pairs'; clears the list. (The quotes on the 'pairs' is optional
unless your using strict, of course.)
I'm not certian how useful this is in pratice, but I think that at least the
first one should be quite useful, and not too difficult or expensive to
implement. I'm not big on implementation of regexes, however.
Also, you should specify that [\G] and [\g] match any grouping "character",
and also that grouping "characters" need not be one character long.
-=- James Mastros