Re: week in a year

2008-04-04 Thread Ben Bullock
On Apr 2, 9:00 pm, [EMAIL PROTECTED] (Jennifer G.) wrote: > How do I know this day is in NO. which week in this year? > for example, Jan 1 is in the no.1 week of this year. > but how about the current day? This seems to be a frequently asked question: http://perldoc.perl.org/perlfaq4.html#How-do-

Re: File Handling problem.

2008-03-28 Thread Ben Bullock
On Mar 28, 1:35 am, [EMAIL PROTECTED] (Ay) wrote: > Hi, > > Current task requires me to combine a few files into a single file > ( abc. txt ) where in each file has to be in a single page. I was able > to create a combined file, but not able to ensure that each file > resides in a page. Attempted a

Re: Handling OLD files

2008-03-28 Thread Ben Bullock
On Mar 28, 5:40 am, [EMAIL PROTECTED] (Anders) wrote: > Hi! > I am looking for a way of moving files older than a date, You can find the number of days since a file was last modified with - M: #! perl use warnings; use strict; opendir (my $dir, ".") or die "$1"; for (readdir ($dir)) { print $