[use] is exactly equivalent to
BEGIN { require Module; import Module LIST; }
except that Module must be a bareword.
So if you have Bar.pm:
When you use Bar, you get:package Bar; sub import { warn "Arguments are: @_"; } 1;
% perl -e 'use Bar qw/abc def/' Arguments are: Bar abc def at Bar.pm line 6.
In reply to Re: package parameters
by trammell
in thread package parameters
by jeteve
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |