Hi Jenda,
Well I have been trying to get a handle on this script but I have yet to understand exactly what is is doing other than looking at the first record and determining if it has dependencies in other records still existing in the @I_depend array, if not it prints the record. It works well but I have still having trouble in that it prints out "Unsatisfied dependencies" even though the records in the original xml are present. I am trying to understand your last comments where you state and I quote, "Only if all the records depend (directly or indirectly) on the last one, will the script keep at one moment all the data in memory." because I can't seem to understand exactly what this means in terms of the original xml and the order in which the records may be arranged.
If you have the time can you help me understand the code by possibly adding some comments around the heart of the code? I have been reading the XML::Rules documentation but it is still above my head.
And out of the 1992 records 80 return in error as "Unsatisfied dependencies" but when I look at the original xml I can't see any obvious differences in the records that do work or a reason why they fail to work with the script.
One possibility that may exist is that many if not all of these 80 failed records have very like names of other records. Is it possible that the grep to check for the NOT EXIST is somehow not being a specific as it needs to be? I am really trying to understand this script as it has so many things I have never used in any of my scripts, I have only been doing perl for a couple years and I can do basic stuff but your script goes beyond my base comprehension that I would really like to GET IT and understand.
Example Record Names
<name>cicoutage</name>
<name>cic</name>
<name>actpage4_ecc</name>
<name>actpage4</name>
<name>actpage</name>
Thanks for all your help,
Danny
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.