Almost. Some of the templating modules (e.g., HTML::Template) will query all keys to compare to all the parameters in the template to make sure of a one-to-one match which I find equally annoying, but that's for another rant - the error message from the check is at least quashable. I'm unsure of whether the parameter that quashes the error message also quashes the check.
That said, HTML::Template also only takes a hash, not a hash ref, so your comment doesn't quite apply there - which modules take a hash ref? I would think that most modules wouldn't since they need to allow you to set the parameters multiple times to add new parameters from various sources. Yes, you could do that yourself and pass the whole thing in, but that's quite a bit less extensable. And then it would take the hash you give it, tied or not, and copy it into itself. It's sounding a bit more work than submitting patches to allow callbacks :-)
-
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.
|