That makes little sense. I've been under the apprehension that use differs from require in that it happens during BEGIN and calls the import method on the package. Your fix strikes me as something that is tenuous and if you don't find the actual problem at least put some comments in the code with perhaps a URL back to this link. I'm imagining that a year later this same code will break for some other reason just because I think the actual difference you're involving is so little. I think I'm going to go back and look at the objects you're loading and see what import() does for each but offhand I'm surprised this makes a difference.
-
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.
|