I would "use warnings", but in mason, it just isn't useful. For example, here's the message I get back when I "use warnings":
Mason error
error in file: /usr/local/lib/perl5/5.6.0/Carp/Heavy.pm
line 79: Bizarre copy of HASH in aassign
context: ...
75: # them according to the format variables defined earlier in
76:
# this file and join them onto the $sub sub-routine str
+ing
77:
if ($hargs) {
78:
# we may trash some of the args so we take a copy
79:
@a = @DB::args; # must get local copy of args
80:
# don't print any more than $MaxArgNums
81:
if ($MaxArgNums and @a > $MaxArgNums) {
82:
# cap the length of $#a and set the last element to '..
+.'
83:
$#a = $MaxArgNums;
...
component stack:
/orders_survey/search.html
code stack:
/usr/local/lib/perl5/5.6.0/Carp/Heavy.pm:79
See what I mean?
-
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.
|