I'm implementing the code as a subroutine, but when I initially had it running locally as it's own script it was functioning just file.

Here's the spot of code that is giving me the problems. It seems that it is trying to find the 'new()' function within the XML::Writer module, but can't find it. No clue why not. Thanks in advance for the help!

Code

sub SQLtoXML {

$log->debug("Attempting to pull from MySQL DB and write to XML.." . "\n");

#Parameter being passed is the Source ID to check against the Database and final directory for XML file. my $PassedSource = $_[0]; my $FinalDir = $_[1];

Re: [FishMonger] Error when creating a new instance of XML::Writer
[In reply to]

Can't Post

My apologies for the long, drawn-out reply. I ended up getting side-tracked on another issue. Anyways, it looks like CPAN was for some reason installing the wrong module under the name XML::Writer. Just had to copy the write one to the proper location and it started working wonderful. Thanks again for the help!