Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Directory-non-recursion (was Re: Re: Directory Recursion)

by Haloric (Novice)
on Mar 04, 2014 at 15:07 UTC ( [id://1076891]=note: print w/replies, xml ) Need Help??


in reply to Directory-non-recursion (was Re: Re: Directory Recursion)
in thread Directory Recursion

I'm a few years late to the party - but you are iterating over an array that you are extending, (@files) not sure what the party line is on this, but it caused me grief. Create a temporary array, then append the two together at the end. Then throw it all away and use File::Find.
  • Comment on Re: Directory-non-recursion (was Re: Re: Directory Recursion)

Replies are listed 'Best First'.
Re^2: Directory-non-recursion (was Re: Re: Directory Recursion)
by choroba (Cardinal) on Mar 04, 2014 at 15:12 UTC
    You replied to a wrong node. merlyn does not iterate over an array, he runs while (@array), which is correct.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-19 22:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found