Hi
BEGIN { package G; $INC{q/G.pm/}=__FILE__; sub import { warn qq{@_ }; } } use G(); use G; use G; __END__ G at - line 1. G at - line 1.
As you can see import is only called twice when the empty parens aren't present
So if.pm does not know that the user didnt want import called
It might be possible to determine that using B::Deparse but that seems a bit much for a pragma
In reply to Re: 'if' pragma and modules with an empty import list
by beech
in thread 'if' pragma and modules with an empty import list
by kcott
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |