You're not missing anything. Just use the right tool for the job.

The main difference is that the Perl version can be easier to port to Win32, VMS, OS X, and so on, whereas the shell script (really the find program) may not be available, or may work differently (find on Win32 is a whole 'nuther program).


In reply to Re: (1) line of sh vs (~20) lines of perl ? by VSarkiss
in thread (1) line of sh vs (~20) lines of perl ? by mandog

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