initial version of a first attempt to get C++'s map template to work
this seems to work
experiments with signal handling in PERL