in reply to passing a $var thru a "use module($var)"
I found it easy to make a non-OO module with:
oruse MeMmonitor; &MeMmonitor::init($$);
use MeMmonitor1; my $m = MeMmonitor1->new($$);
but my idea was just to use
and have that do it all with no other statements. Well I started to play with passing the $pid to the module, then realized that both module and script shared the same pid, so it just became an academic question. I can't sleep at night when I have unresolved Perl questions :-) .use MeMmonitor;
|
|---|