Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: How can I readdir and ! -d in one line

by Anonymous Monk
on Oct 27, 2020 at 19:52 UTC ( [id://11123233]=note: print w/replies, xml ) Need Help??


in reply to How can I readdir and ! -d in one line

Find rule is cake, readdir is flour

use File::Find::Rule qw/ find rule / ; my @dirs = find( directory => maxdepth => 1, name => qr/\w/, )->in($startdir);

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-19 04:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found