First, sit down with a stubby pencil and a sheet of paper. Work out the steps you'd need to take and the criteria by which you'll decide which step to take for any given instance of your data or, at least, for a representative sample of the data.

Then turn the result into pseudo-code -- or directly to code if you have the required knowledge and skills.

When you run into problems with particular pieces of the code you're trying to produce, try Tutorials, Super Search, the CB and if all that fails, post your question showing what you've done along with a clear explanation of what's happening that you didn't expect or not happening that you did expect.

Add a small sample of output, error messages and warnings, and -- of course -- a small sample of your data (enclosed in <code>...</code> tags). For more on formatting (your question above would surely be easier to read were it divided into several paragraphs or structured as a list), see Markup in the Monastery.

Actually, of course, since you didn't just get here yesterday, you probably know most of this but on the other hand, it appears to be your first post, so perhaps some or all the above will be useful.


In reply to Re: Find Filename in Directory Tree and copy to another directory .. by ww
in thread Find Filename in Directory Tree and copy to another directory .. by sumitrai666

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.