jstabe (jstabe) wrote in component_help,
jstabe
jstabe
component_help

  • Mood:

Problem with random quote code

I'm trying to add random quotes to my journal, but I keep getting this error message. Can anyone tell me what I'm doing wrong?


Compile error: line 50, column 23: Didn't find closing brace in statement block
S2::NodeStmtBlock, S2/NodeStmtBlock.pm, 51
S2::NodeIfStmt, S2/NodeIfStmt.pm, 35
S2::NodeStmt, S2/NodeStmt.pm, 38
S2::NodeStmtBlock, S2/NodeStmtBlock.pm, 42
S2::NodeFunction, S2/NodeFunction.pm, 104
S2::Layer, S2/Layer.pm, 58
S2::Compiler, S2/Compiler.pm, 27


Context

46: # Pick one of the quotes randomly.
47: var int randquote;
48: $randquote = rand(0, ((size $quotes) - 1));
49:
50: if ($all_rounded) {
51: """
52: <tr>
53: <td valign="top" rowspan="3" colspan="3" width="5"></td>
54: <td class=""></td>
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 28 comments