Re: Handling OLD files
- From: santoshpatil4u@xxxxxxxxx (Santosh Patil`)
- Date: Fri, 28 Mar 2008 17:50:29 +0530
below peace of code u list of files, sorted according the date ""
@lfiles = grep {stat($_)->mtime() < $date} @files;
================================================
On Fri, Mar 28, 2008 at 5:08 PM, Robert (bloo) <
i.have.no.real.name@xxxxxxxxx> wrote:
Sandy wrote:
On Mar 27, 1:40 pm, anders.u.pers...@xxxxxxxxx (Anders) wrote:Or, you could use the built in "stat" function. It can get a lot of
I am looking for a way of moving files older than a date,
I am need this in a script for moving/erase old files from a
production machine
Try using File::Find
http://search.cpan.org/~nwclark/perl-5.8.7/lib/File/Find.pm<http://search.cpan.org/%7Enwclark/perl-5.8.7/lib/File/Find.pm>
/sandy
http://myperlquiz.com/
information on a file.
perldoc -f stat
--
To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx
For additional commands, e-mail: beginners-help@xxxxxxxx
http://learn.perl.org/
--
Regards
Santosh Patil
- Follow-Ups:
- Re: Handling OLD files
- From: Anders
- Re: Handling OLD files
- References:
- Handling OLD files
- From: Anders
- Re: Handling OLD files
- From: Sandy
- Re: Handling OLD files
- From: Robert
- Handling OLD files
- Prev by Date: Re: Handling OLD files
- Next by Date: Re: Geting the Host from URL in cgi script
- Previous by thread: Re: Handling OLD files
- Next by thread: Re: Handling OLD files
- Index(es):
Relevant Pages
|