Remove unnecessary cruft from the module example.
authorMichael G. Schwern <schwern@pobox.com>
Sun, 23 Oct 2011 02:32:04 +0000 (19:32 -0700)
committerTony Cook <tony@develop-help.com>
Sat, 29 Oct 2011 03:20:44 +0000 (14:20 +1100)
commit01d915c00a066129fc64984cc9323785791fd33c
tree3834c3aa7c88b5eb67e45659c1d7d88dfc1ca175
parent96afcf7e17917e18327f7d8a73e4d04b6dccddc0
Remove unnecessary cruft from the module example.

This makes it more like a real module would be written while retaining it's utility as a teaching boilerplate.

* require Exporter instead of use with no import
* Declare and initialize variables together.
* Eliminate archaic RCS/CVS versioning clutter.
* Explain what @ISA does.
* Remove archaic (and slower) &func syntax from exporting
* Remove %EXPORT_TAGS.  It's not explained and rarely used.
* Remove redundant @EXPORT_OK
* Use cleaner $priv_func->() syntax rather than &$priv_func.
* Eliminate prototypes, they're clutter, rarely used and dangerous.

TonyC: update known_pod_issues.dat
pod/perlmod.pod
t/porting/known_pod_issues.dat