UPDATE:
Let me go into more details (as requested)
I have 2 Perl files, the first one generates a XML request/POST (No file is made). The second file is new and intended to add another element inside of the XML on certain conditions. The problem I'm having is the first file already checks for the conditions but the second file is needed to generate the new XML. How do I add the XML to the first file from the second file?
something like this:
(File #3 uses File #1)
use file1
my $xml = File1->new();
# Set some properties
# Now adding XML from file #2
my $addXML = File2->new();
# Set some more properties
# File1 needs to check if the XML or Object from File2
# exists to add the XML to File1, else throw error.
I hope this helps and sorry for the first post.