Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Accessing a folder whose name changes daily

by SuicideJunkie (Vicar)
on Dec 18, 2012 at 15:45 UTC ( #1009413=note: print w/replies, xml ) Need Help??


in reply to Accessing a folder whose name changes daily

You could use localtime() to predict what the folder should be called, and validate that at the same time.

Alternatively you could scan through all the directories and see if the file is anywhere, using opendir or File::Find

  • Comment on Re: Accessing a folder whose name changes daily

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1009413]
help
Chatterbox?
[ambrus]: Corion: no, backwards. It's possible in the general case, but not in the specific case of bad data we have. Which is why it's harder to explain.
[marto]: that reminds me, to donate...
[ambrus]: If it was possible in this specific case, then the burden to argue for that would be his.
[Corion]: ambrus: Ah, but he's the boss, so the burden to show that it's impossible still lies on you :-)
[Corion]: ambrus: I would work with him through an example

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2017-12-12 13:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (332 votes). Check out past polls.

    Notices?