<tt><font size=2>Patrick Meidl &lt;patrick@pantheon.at&gt; wrote on 07/06/2012
03:29:41 PM:<br>
<br>
</font></tt>
<br><tt><font size=2>&gt; 'exists' tests the existence of hash keys, array
elements and subroutine<br>
&gt; names, not object methods (see 'perldoc perlfunc'). as I mentioned<br>
&gt; before, you should use can() for this. so something like this should
put<br>
&gt; you on the right track:<br>
&gt; <br>
&gt; foreach my $method (split(/\./, $field)) {<br>
&gt; &nbsp; &nbsp; if (defined($val) and ref($val) and $val-&gt;can($method))
{<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; $val = $val-&gt;$method;<br>
&gt; &nbsp; &nbsp; } else {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; # this is not required, but shortcuts
the processing<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; last;<br>
&gt; &nbsp; &nbsp; }<br>
&gt; }<br>
&gt; <br>
&gt; HTH<br>
&gt; <br>
&gt; &nbsp; &nbsp; patrick<br>
&gt; <br>
I added this and I get a never ending stream of : </font></tt>
<br><tt><font size=2>Use of uninitialized value $data[0] in join or string
at /opt/catalyst/dbms/script/../lib/dbms/Controller/AccountView.pm line
59.</font></tt>
<br>
<br><tt><font size=2>Which is just a debug statement, but it never ends.
I comment it out and it acts like it is hung, my browser just says &quot;Waiting
for local Host&quot;.</font></tt>
<br>
<br><tt><font size=2>I am actually quite close, I created a custom resultsource
and have it populating the spreadsheet, but it keeps trying to iterate
over the 86th row, which doesn't exist.</font></tt>