We don't bite newbies here... much | |
PerlMonks |
Directory Handle, static object and recursive functionsby yitzle (Initiate) |
on Mar 08, 2007 at 05:39 UTC ( [id://603767]=perlquestion: print w/replies, xml ) | Need Help?? |
yitzle has asked for the wisdom of the Perl Monks concerning the following question:
I'm gonna be posting my script, so before I do, I hereby release any code in the post under the MIT license.
Script now at http://www.ecf.utoronto.ca/~goodi/ht...ail_creator.pl The script recursively explores a file tree, creating a copy of the directory structure and converts any .jpg files found in it the source tree to a thumbnail in the destination tree. 43 lines or so. Pretty straight forward. Unfortunately, when I last tried running it, it didn't explore the entire tree. HELP! Why not? When you got a recursive function can you declare a DIR_HANDLE in it? Do the DIR_HANDLE's affect each other? You know what? Ignore this. Its been discussed. Sorry dudes. Dupelicate of: http://www.perlmonks.com/?node_id=17301
2007-03-08 Considered by thezip: No value
Back to
Seekers of Perl Wisdom
|
|