Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: GLOB function

by taint (Chaplain)
on Jun 19, 2018 at 16:28 UTC ( #1216952=note: print w/replies, xml ) Need Help??

in reply to GLOB function

I see others have already addressed your question well. My first thought was, when I read your question was mtime
Mtime prints the name and modification time (in seconds since the epoch) of each of the files.
Seemed the fastest/easiest way to "stat" the file(s) you're interested in. So I performed a search on CPAN, and found File::Find::Age, and newest-mtime. Either one of which would probably serve you well. I think using this approach may make coding your solution easier, and should also improve the speed for the results, as drilling down a filesystem hierarchy will be the bottleneck.



Evil is good, for without it, Good would have no value
λɐp ʇɑəɹ⅁ ɐ əʌɐɥ puɐ ʻꜱdləɥ ꜱᴉɥʇ ədoH

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2023-12-08 02:16 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (34 votes). Check out past polls.