Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Traverse a directory

by Anonymous Monk
on Sep 05, 2012 at 14:34 UTC ( #991870=note: print w/ replies, xml ) Need Help??


in reply to Re: Traverse a directory
in thread Traverse a directory

Apart from forking to an external process being of questionable use, your code will fail if $dirname contains a space, or a file name contains a line break; also, you cannot iterate over the list until you get it in full (could take a few minutes).

Anyway, I'm saying that using modules is usually more robust and flexible and portable than shelling out to some command.


Comment on Re^2: Traverse a directory
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991870]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (10)
As of 2014-07-22 21:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (129 votes), past polls