Is Method 2 generally preferred over Method 1 when using methods from another module? If so, what are the reasons?
Thanks in advance:)# Method 1 use Mymodule qw(&func1 &func2); # Method 2 autouse Mymodule => qw(func1 func2);
Updated: Method 2 should have been:
Thanks to perrin for pointing out.use autouse Mymodule => qw(func1 func2);
In reply to autouse vs use by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |