unless cross-platform issues are not and issue, and speed is in which case you CAN do it faster by doing it yourself. I don't remember what method turned out to be the fastest when I benchmarked them, but I do remember it wasn't File::Find, and since the requestor is asking for a script for his personal use in learning to program perl he should probably look at all the various methods, and consider their benefits and detriments for his own particular situation.
Not to rant, but I hate it when people say "If you're doing such-and-such, you should do it this way." as if there weren't a million and a half equally good ways of doing it.
I admit that I personally don't re-invent the wheel unless I have to. If there's a perfectly good module out there to do the job, I'll generally use it... but I digress.

In reply to RE: Re: Scanning static directory tree for files by raflach
in thread Scanning static directory tree for files by shandor

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.