Re: [Boston.pm] use Exporter vs. require Exporter

Bill Ricker <[email protected]>
Newsgroups gmane.comp.lang.perl.perl-mongers.boston
Message-ID <CAAbKA3UKeEuRcFUYQ23G01z44FhaDkNWBzFf4TKHLne8T5vkFg@mail.gmail.com>
Non random statistical sample from my harddrive

​​
​

​​
 ​
3636 require Exporter;
​​

​​
 1234 use Exporter;
    404 use Exporter ();
    338 require Exporter ;
    239     require Exporter;
    225     use Exporter   ();
     90      require Exporter;
     86 use Exporter 5.57 'import';
     75 use Exporter 'import';
     73   require Exporter;

​and many other spacing variations ...​ yeah i could canonicalize spacing
but it's close

​Unless the doc's endorse the usage, it's a code smell at a minimum ... ​
and even if endorsed the comment is a code smell.

​

_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.