Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by BillKSmith (Prior)
on Oct 28, 2020 at 01:53 UTC ( #11123243=note: print w/replies, xml ) Need Help??


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

You can use an OO approach. Create a subclass of IO::Dir which returns only the files you want. This probably is slightly longer than what you already have, but it separates the special code from your application. (And it would be available for reuse)
Bill
  • Comment on Re: How can I readdir and ! -d in one line

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2021-04-16 02:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?