OK, I AM A NOVICE. That means "Idiot's Guide to ..." are just too
sophisticated.
I have a problem ("What's your problem.").
I can't seem to get windows events to call my event handlers (original
topic). I have modularized my code so that:
a.pl control logic module
a/b.pm GUI handler
As part of previous suggestions and new thoughts, I have:
1. Made the window handle, $window, 'our $window' in a/b.pm
2. Made the handle 'our $window' in a.pl.
3. Made a local copy of all event handlers:
<name>_<event>{ a::b:<name>_<event>;} # so that all calls
are in the main module and are redirected to b.pm.
4. Used an exporter (from memory so it may not be exact)
use var qw( <name>_<event>* $window etc);
use @ISA ('Exporter');
use @Exporter qw( <name>_<event>* $window etc );
5. I have not used direct module importing (just thought
of it), as in:
use b(<name>_<event>* $window etc);
6. Thought fondly of unassisted ends to my mortal coil.
And in most cases I get the $window window but no interaction
to any event. Sort of 'click and nothing'.
I think I've followed all the suggestions. I've tried to
put use scoping correctly, and I've found out that the
only thing that the exporter seems to export are subroutine
names. It's clear that I don't know what I'm doing. Any
more suggestions?