Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: How to perform recursion in any OS?

by BrowserUk (Patriarch)
on Dec 08, 2016 at 00:49 UTC ( [id://1177464]=note: print w/replies, xml ) Need Help??


in reply to How to perform recursion in any OS?

Change this line to:

chomp(my @files = $^O eq 'MSWin32' ? `dir /b $path` : `ls -a $path`);

/b is closer to -A than -a, but that is easily worked around if necessary.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-03-28 16:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found