Ha. A simple, "I don't like what you did" would be fine. It was mostly a test exercise to see if I could do it to be honest. And it does work properly despite lack of some error checking which is why I sorta hinted at it needing some. As far as indenting I prefer to tab while others use spacing for portability. Keeps the code smaller. And I happen to like combining similar short commands on a single line. Just my preference. Isn't that what perl is sorta about....freedom in coding style. Also the arrays aren't identical due to the new folder tree having a different name. That's just how I did it. The only real reason I even did this was to eliminate the requirements for unnecessary modules in a specific piece of code I was working on. In my code I know there won't be any symlinks in its use which is why I didn't bother. All in all, point being that from my experience I've had modules not build on certain systems at all or operate differently from 32 to 64bit, different versions of perl, cpan can be a PITA some times...so the fewer I can require in my code, the better. This was obviously a "crude" example. I appreciate your input. It just didn't need to be so...jump the gunish angry :P. Peace.

In reply to Re^3: Copy folders by SM177Y
in thread Copy folders by avik1612

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.