Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Up to this point, my perl experience has been largely in general scripting tasks and one large application. When DrZaius told me that my Find Ethernet Card Manufacturer script might be better as a module, I realized that this was an area in which I had little experience.

I've read the appropriate sections in the Camel book a couple of times, along with perlmod and perlmodlib and even browsed around CPAN a bit, thinking that they might at least have some guidelines for module creation. For the first time in my perl career, I am feeling rather dissatisfied with the documentation I've read.

For example, in the post mentioned above, DrZaius suggested that I include the mac address database into the __DATA__ section of a module. For the life of me, I can't seem to find any documentation about the __DATA__ section of a module.

I'm also curious about the ramifications of use and require statements, when it make more sense to use an object-oriented approach, etc.

Does you have any pointers to resources that might help me explore this facet of perl? Or perhaps you think I'm making the topic overcomplicated and can enlighten me in that regard.


In reply to Module Creation by mvaline

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-23 19:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found