Well i'm feeling more refreshed now

hhmmm - yes I do appear to have ommited some essential code, well that was a mistake, I decided not to put the entire program up in the first place as it is monstrous and I want to focus on the problem at hand rather than the general mess of my code, it's just about working at least.

I've done some debugging, as well as rewrote that bit so to avoid the nasty unless and recursive statement, and in fact the problem with uninitialised values is nothing to do with the code that I posted *oops* it was in fact an upstream subroutine, getting stuck on the /. and /.. entries in a directory no less.

My problem at the moment seems to be perl complaining about using a hash as a reference being deprecated, the issue is this particular line "$treeref = \%$treeref->{$::path$count};" (changed since the posting) it's there in order for the program to keep track of where it's got to in the particular tree. But perl seems to refuse me doing it, it probably has it's reasons. But I now have to think someway around it...

I am considering recoding the entire program, I put it together without really thinking, if people would like to have a look at it, then they can have a look at it on the code section.

it's suppsed to scan an entire filesystem, and return an XML file recording it's structure, but it's proving more difficult than I thought

Don't suppose anyone here has any hints?

In reply to Re: uninitialised value in hash reference by Maze
in thread uninitialised value in hash reference by Maze

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.