in reply to Recursive function in perl
I'm sorry, but I don't understand what you are trying to achieve. Are the files stored in nested directories? What are you trying to print, you say that you want to print link names, then you are saying that you want to open those files, and your code tries to print file contents, not names.
Please, explain what you want to do, and I'll do my best to help you. Perhaps write some simple code that does what you want to do only for depth = 2, try it, and if it works, post it, and we'll figure out a way to change it so it works for a variable depth value.
Regards,
Luke
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Recursive function in perl
by ashok13123 (Novice) on Jun 19, 2009 at 12:19 UTC | |
by 1Nf3 (Pilgrim) on Jun 19, 2009 at 12:35 UTC |