kiat has asked for the wisdom of the Perl Monks concerning the following question:
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);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: autouse vs use
by jasonk (Parson) on Apr 25, 2005 at 03:41 UTC | |
|
Re: autouse vs use
by perrin (Chancellor) on Apr 25, 2005 at 05:16 UTC | |
by dragonchild (Archbishop) on Apr 25, 2005 at 12:42 UTC |