Good question. Unfortunately, you may not like my answer so much.
The functionality you want exists, in the form of the `-b' switch.
Specifically, this is what I've been using lately:
h2xs -AXn Foo-Bar -b 5.5.3
The problem is that this switch was added in early June 2000
, too late for 5.6.0. It has been integrated into the 5.6.1 track.
Your options are (in no particular order):
- Get Perl 5.7.0 or an even newer version of the development track
- Wait for 5.6.1, which should be RSN.
- Integrate that patch into your version of h2xs
- Manually delete the "require 5.005_xx", change "use warnings" to "-w", and
all `our' vars to `use vars' in every module you create
- Use the 5.00503 version of h2xs
-dlc
-
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.
|