Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

Is there any Perl helper, to help people start a module, which does things like:

#!/usr/bin/perl -w use strict; use diagnostics; BEGIN { $DB::single = 1; # Allows us to single step through testing # If you need to define functions from the module, do that with a # qw( ... ) after the quoted module name. use_ok( '$ModuleName' ) or die; } diag( "Testing $ModuleName $ModuleName::VERSION" ); =pod This is a stub test function, from which a person can build their monolithic module, and then split the module into pieces if need be. Put whatever code and data you are using to test this module as you develop it below. =cut my $Pi = 4 * atan2( 1, 1 ); # And whatever other constant a person might need.

And I propose a name of z99.t, so that it runs last.

But this idea is that the various helpers (to start projects for people), give them a template in ./t/ where they can develop their module via testing. This seems to be something that people who develop software professionally prefer, but doesn't seem to be present here. Maybe there is a better way?


In reply to Developing/testing numerical Perl by Anonymous Monk

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • 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, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

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

    How do I use this? | Other CB clients
    Other Users?
    Others chanting in the Monastery: (14)
    As of 2014-12-19 16:43 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      Is guessing a good strategy for surviving in the IT business?





      Results (89 votes), past polls