I dont know where to start, which functions to use in pearl i searched for "moving files" but didnt find exactly what i need in this case.
<pedantic>It's "Perl" for the language, "perl" for the executable name. Not "PERL", and certainly not "pearl".</pedantic>
As to not knowing where to start - I suggest figuring out the steps that you need to take to make this happen, and then creating those steps out of the available functions. Experienced programmers, of course, know what all (or most) of the functions are and design their programs out of those "building blocks"; since you appear to be just starting out, you'll need to run a few cycles of this before you succeed.
Here's an idea of how you might approach this (this is based on what you've already said; there are better approaches):
[pseudocode] Loop over the list of files in the source directory Read each file's date If date contains 2008 Move file to target directory End if End loop
That's half the job done for you. All you have to do is read "perldoc perlfunc" and fill in the blanks.
In reply to Re: moving files in a dir (Maildir) depending on Date
by oko1
in thread moving files in a dir (Maildir) depending on Date
by matze77
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |