May be a class factory, remember this is a rewrite of a previous version that only read the xml files as a guide of that rpms to download. That there are errors in it, is unsurprising, since, while I started with working code, I'm no where close to the new code that needs to go into its place. I'll have to reread some source(s) about class facs.

As for throwing away the output of mkBless...that's because it is equivalent to:

sub new() {my $p = shift; my $c=ref $p||$p; my $arghash = @_ ? shift : {}; blessed $p? $p->SUPER::new($arg) : ($p = $c->new($arghash); $p }
except that there was a chain of included blessed object before the final output -- that's what I tried to short with mkBless (which I just cooked up for this example, actually, so I can't really defend its usage much, it being my first experience with it.

So bugs? ya ya!, plenty, it was meant to be example code to give an idea of what I was having to do to generate / access data, its definitely not working code! ;-( :-) :-)

-l


In reply to Re^2: How to walk through convoluted data? by perl-diddler
in thread How to walk through convoluted data? by perl-diddler

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.