in reply to sub running on use statement
In this case test() gets called (via import) when the module is "use"d.package ScrewyModule; sub import{ test(); } sub test{ print "in ScrewyModule.pm\n"; } 1;
"You're only given one little spark of madness. You mustn't lose it." - Robin Williams
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: sub running on use statement
by Anonymous Monk on Dec 02, 2014 at 17:21 UTC |