I just tried to implement these changes in my layer (one I'm working on and will change to as soon as it's finished) and I ended up with the following error:
S2 Compiler Output at Thu Mar 16 14:36:22 2006 Error compiling layer: Compile error: line 728, column 4: Right hand side of operator is Entry, not a string or integer S2::NodeSum, S2/NodeSum.pm, 84 S2::NodeSum, S2/NodeSum.pm, 64 S2::NodeTerm, S2/NodeTerm.pm, 76 S2::NodeTerm, S2/NodeTerm.pm, 66 S2::NodeExpr, S2/NodeExpr.pm, 46 S2::NodePrintStmt, S2/NodePrintStmt.pm, 55 S2::NodeStmtBlock, S2/NodeStmtBlock.pm, 101 S2::NodeFunction, S2/NodeFunction.pm, 230 S2::Checker, S2/Checker.pm, 339 S2::Compiler, S2/Compiler.pm, 34 Context 724: } 725: } 726: 727: # Print the entry text. 728: """ $e->print_text(); """; 729: 730: # If metadata is at bottom, stick it here 731: if ($have_meta) { 732: if($meta_pos == "bottom") { {
The only change I made was changing the $e.text to $e->print_text();
I take it that the fix isn't as simple as it seems?