Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^6: Finding and sorting files in massive file directory

by CColin (Scribe)
on Jan 21, 2013 at 12:58 UTC ( #1014439=note: print w/ replies, xml ) Need Help??


in reply to Re^5: Finding and sorting files in massive file directory
in thread Finding and sorting files in massive file directory

Thanks, I'll try it.

I am intrigued by your earlier reference to Archive::Tar. I did look at the module briefly but it seemed rather complicated. What would it add over and above using readdir with while and basic unix commands?


Comment on Re^6: Finding and sorting files in massive file directory
Re^7: Finding and sorting files in massive file directory
by dave_the_m (Parson) on Jan 21, 2013 at 15:25 UTC
    What would it add over and above using readdir with while and basic unix commands
    It allows you to programmatically to select, add files etc, without having to fork out to an external program. For example, if you didn't need to delete the files afterwards, you could have just used my original script, with $tar->add($file) for each matching file. No need to fork out, no command line length limitations etc.

    Dave.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2014-11-26 16:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (171 votes), past polls