Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 566655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:00:04+00:00 2026-05-13T13:00:04+00:00

UPDATE: Let me go into more details (as requested) I have 2 Perl files,

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T13:00:04+00:00Added an answer on May 13, 2026 at 1:00 pm

    I’m assuming here that both “File1” and “File2” are purely object-oriented modules, meaning for this purpose that they do not maintain global state and only support class methods for creating objects and object methods for performing actions on those objects.

    In this case, I’d put the checking logic in your main program, not in the File1 module, and write it like so:

    if ($addXML->hasObjectImLookingFor) {
         $xml->add($addXML->getObjectImLookingFor);
    } else {
         die "File 2 does not contain object I'm looking for";
    }
    

    I’m sorry this is vague, but honestly, so is your question. If you can actually give us a small sample of complete Perl code (I understand it can’t be your real code, but just a small dummy module that illustrates the behavior) that might help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let say I have a screen name ITEM thats performs different actions: Save, Update,
Or vice versa. Update: Hmm, let's assume I have a shopping cart app, the
I have a table, let's call is [MYTABLE] , with an FOR INSERT, UPDATE
Update: This turned into a blog post, with updated links and code, over at
I have let's say 2 (but they'll become more in the future) fully decoupled
I have a model that for edit/update actions only is logically split into two
How do you guys update let's say for example a FormView with an ObjectDataSource
Let's assume I browse a specific web page that uses JavaScript to update its
I have a very high level of Inserts/Updates vs Reads let's say 99% Writes
I am new to ADO.net and have this problem: Let's assume I have these

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.