<tt><font size=2>&gt; perl doesn't eval $data-&gt;$field in the way you
expect it to. you would<br>
&gt; have to do something like<br>
&gt; <br>
&gt; my $val = $data;<br>
&gt; foreach my $method (split(/\./, $field)) {<br>
&gt; &nbsp; &nbsp; $val = $val-&gt;$method;<br>
&gt; }<br>
&gt; $ws-&gt;write($row, $col, $val);<br>
&gt; <br>
&gt; to make your code more robust, you should add some sanity checking,
like<br>
&gt; <br>
&gt; if ($val-&gt;can($method)) { ... }<br>
&gt; <br>
&gt; HTH<br>
&gt; <br>
&gt; &nbsp; &nbsp; patrick<br>
&gt; <br>
&gt; -- <br>
&gt; Patrick Meidl ........................ patrick@pantheon.at<br>
</font></tt>
<br><tt><font size=2>I'm almost there, having some issues with null values.
I keep getting an error about not being able to perform object method on
an undefined etc. I can't find my way around it. I tried this and it sets
it to 0 but still bombs out with the same error.<br>
</font></tt>