<?xml version="1.0" encoding="windows-1252"?>
<node id="358908" title="kiat's scratchpad" created="2004-06-01 20:40:57" updated="2005-08-10 21:46:58">
<type id="182711">
scratchpad</type>
<author id="89333">
kiat</author>
<data>
<field name="doctext">
for ww:&lt;p&gt;
You missed a double quote towards the end. I get the uninitialised value in concatenation warnings too.
&lt;code&gt;
$message =~ s~\[size=(.+?)\](.+?)\[/size\]~"&lt;font size=\"".(($1 &gt; 10) ? 10 : $1)."\"&gt;$2&lt;/font&gt;"~eisg;
&lt;/code&gt;
&lt;hr&gt;

&lt;code&gt;
   if (done) {
      String code = doSolve();
      String newurl = "http://localhost/?node=game&amp;action=solove&amp;code=" + code;

      try {
         getAppletContext().showDocument(new URL(newurl));
      }
      catch (Exception ex) {}
      endGame();
   }

   public String doSolve() {
    String file = "/java/file";
    String test = "yyyyyy";

    try {
      URL url = new URL(getDocumentBase(), file);
      BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
      String code = in.readLine();
      test = code;
    }
    catch (IOException e) {}

    return test;
    //System.out.println("string:" + code);
  }
&lt;/code&gt;</field>
</data>
</node>
