<tt><font size=2>> perl doesn't eval $data->$field in the way you
expect it to. you would<br>
> have to do something like<br>
> <br>
> my $val = $data;<br>
> foreach my $method (split(/\./, $field)) {<br>
> $val = $val->$method;<br>
> }<br>
> $ws->write($row, $col, $val);<br>
> <br>
> to make your code more robust, you should add some sanity checking,
like<br>
> <br>
> if ($val->can($method)) { ... }<br>
> <br>
> HTH<br>
> <br>
> patrick<br>
> <br>
> -- <br>
> 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>