I'm getting differing behaviour on two chunks of code that are (according to PerlDoc) supposed to be identical.
This works:
my @fields = qw( opffile spec twig twigroot twigmeta error ); require fields; fields->import(@fields);
This doesn't:
my @fields = qw( opffile spec twig twigroot twigmeta error ); use fields @fields;
Could someone please explain why?
In reply to When is "use module" not the same as require+import? by AZed
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |