The whole module is evaled, so if anything is written outside a 'sub', it will be executed imidiately after "use ScrewyModule" happend.
If this doesn't help, try raising a warning instead of printing. Try showing the call-chain to isolate where it origins. (see Carp )
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
In reply to Re: sub running on use statement
by LanX
in thread sub running on use statement
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |