![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
RSPerl and DESTROYby dana (Monk) |
on May 05, 2007 at 02:27 UTC ( #613671=perlquestion: print w/replies, xml ) | Need Help?? |
dana has asked for the wisdom of the Perl Monks concerning the following question:
Good day Monks.
I have a problem which is fairly complex to explain, however I'm hoping someone can help me find a solution. I've been working with RSPerl (http://www.omegahat.org/RSPerl/) in order to call R functions from within Perl. If I run a basic program I get the expected results without error. An example of a basic script from the RSPerl website is listed below: The problem happens when I turn my Perl code which uses RSPerl into a module and call it from a primary script. The relevant portion of the code is listed below:
If I call the module containing the RSPerl call once, the values are calculated correctly, however an error occurs when calling a 'DESTROY' function that exists in the RReferences.pm module of RSPerl (detailed debug below):
--- STDOUT DEBUG ---
RSPerl debug statements:
--- STDOUT DEBUG ---
RSPerl debug statements: There isn't anything wrong with the data from the second site. If I remove the first site and run it on the remaining sites I get the same failure on the second call to the module containing the RSPerl call. I have written to the RSPerl author, currently waiting for a response. I worked with him last year when I first installed RSPerl and noticed the problem. He and I worked together on other problems, but he didn't have time to track this one at the time. To be honest it fell off my radar and his radar. I was making one call out to the module and all was working okay -- I was biding my time waiting for a new release. However as datasets got larger, the hardware limitations necessitated the need for multiple calls. The final piece of information is the following, the DESTROY subroutine: Please let me know if any information would make this problem more clear.
UPDATE --
Perl v5.8.8 I've tested on a few different linux flavors and versions -- all to no avail. I haven't been able to test on Solaris yet as we are upgrading our systems.
Back to
Seekers of Perl Wisdom
|
|