For a while I've been having strange behaviour in the NEM - I've always assumed it was something that I was doing (or not doing). Basically it's when you mix NEM and OEM. As an example, look at pmx.pl in the samples folder. It mainly uses OEM, but has a couple of NEM calls.
If you run it from the command line, and select any menu item, you get an
"Undefined subroutine &main:: called at pmx.pl line 383."
If you comment out the two places that use NEM calls (line 43, and lines 79 to 81) the program runs fine.
I've tried -eventmodel but this makes no difference.
Is this a bug?