Multiple comments thus far have said that
use Order is essentially a no-op, because the calling code will have already included Order. This is guaranteed
if and only if every sub in X will be used - which is hardly a foregone conclusion.
Imagine, if you will, that package X has defined both sub do_something_to_order and sub do_something_to_customer. If X is then referenced by a customer management application, the app will not be importing Order (or calling do_something_with_order) because it doesn't do anything related to orders. In this case, leaving use Order out of package X will prevent Order from being (needlessly) included.
I don't think this situation is much of a stretch if you're talking about modules which are used in more than one place. When was the last time you used a (non-trivial) CPAN module and your code (directly or indirectly) called every single sub present in that module?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.