Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

comment on

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

I would summarize my feelings on the matter thusly:

  1. No matter what else you do, be crystal-clear.   Also avail yourself of everything that Perl can do for you through the use of:
    use strict; use warnings;
  2. Remember that the mod_perl (and FastCGI) environment is persistent.   The program may remain in memory for some time, and this can create severe debugging issues unless you make it a point to ensure that every single thing has a known value (or is known to have no value) at all times.
  3. Perl has many debugging tools, analyzers, and regression-testing tools.   You see them used in major CPAN modules all the time.   There are many benefits indeed to be gained from the practice of building your own modules to an equal degree of rigor.   Many of the CPAN modules we use today evolved from this practice.

One of the nice things about the Perl world is that “best practices” about a great many things are both carefully spelled-out, and carefully explained.   In the true spirit of TMTOWTDI, you don’t have to follow them.   But it is invariably wise to do so.


In reply to Re: Perl Style: Is initializing variables considered taboo? by sundialsvc4
in thread Perl Style: Is initializing variables considered taboo? by ait

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 chilling in the Monastery: (4)
As of 2024-04-19 06:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found