While it's not at all clear that adding 'use strict' will magically turn up the bug (it's more likely that adding 'use strict' will fail to compile large sections of the code that don't contain the bug your looking for, and that the bug, if at all present, will persist, even if you make it up to stricts standards), adding 'use strict' is quite simple.
Just copy the module(s) to a directory where you do have write permission, add 'use strict' in the copy, and put the directory in your PERL5LIB environment variable, then run your program. It should now pick up your copy (with 'use strict') instead of the original. And since 'use strict' only has compile time effects, all you need to do is run 'perl -c' on the (copy of the) module - don't even need to run your program.
-
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.
|