According to the manual, use is the equivalent of BEGIN { require Module; import Module LIST; } except that Module must be a bareword.
It really comes down to if you wish to import names into your current namespace, so that you would be able to type bar(), and not Foo::bar(). Your project will dictate which is better at the time.
Hope this helped,
-v.
Update: Kudos to friedo for reminding me in his post that there is also the matter of whether you want your code loaded at compile-time vs. runtime.
In reply to Re: "use" vs "require"
by Velaki
in thread "use" vs "require"
by mrguy123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |