Yes, File::Find or File::Find::Rule.
If you literally wish to accomplish the task you described see the
tmpwatch rpm from RedHat (it's a shell script).
--
H4sICNoBwDoAA3NpZwA9jbsNwDAIRHumuC4NklvXTOD0KSJEnwU8fHz4Q8M9i3sGzkS7BBrm
OkCTwsycb4S3DloZuMIYeXpLFqw5LaMhXC2ymhreVXNWMw9YGuAYdfmAbwomoPSyFJuFn2
This was cross-posted on perlmonks and what seems like a reasonable respnse
was given there:
An option to specify whether or not to use a user field.
--
H4sICNoBwDoAA3NpZwA9jbsNwDAIRHumuC4NklvXTOD0KSJEnwU8fHz4Q8M9i3sGzkS7BBrm
OkCTwsycb4S3DloZuMIYeXpLFqw5LaMhXC2ymhreVXNWMw9YGuAYdfmAbwomoPSyFJuFn2x
Unfortunately, it's a known problem that CentOS suffers from too (@[EMAIL
PROTECTED]).
This also makes reading error output incredibly difficult since a full screen
is given to list @INC. Instead of a few folks who are upgrading systems
having to set PERL5LIB everyone else has to recompile perl or
No, I'd say this is:
my $set = DateTime::Event::Recurrence->daily();
$days = scalar $set->as_list(start=>...),
end =>...);
--
H4sICNoBwDoAA3NpZwA9jbsNwDAIRHumuC4NklvXTOD0KSJEnwU8fHz4Q8M9i3sGzkS7BBrm
OkCTwsycb4S3DloZuMIYeXpLFqw5LaMhXC2ymhreVXNWMw9YGuA
PS> Of course, it'd be good if as_list was context sensitive so it could
optimize that.
--
H4sICNoBwDoAA3NpZwA9jbsNwDAIRHumuC4NklvXTOD0KSJEnwU8fHz4Q8M9i3sGzkS7BBrm
OkCTwsycb4S3DloZuMIYeXpLFqw5LaMhXC2ymhreVXNWMw9YGuAYdfmAbwomoPSyFJuFn2x8
Opr8bBBidcc=
--
MOTD on Sweetmorn, the 48th of Disco
>How long would it take the average Perl programmer to a) find
>DateTime::Event::Recurrence in the DateTime docs and
I agree that it's hard to find, I only came across it on the third rewrite
of a script where I was doing this.
> b) understand that the scalar context of a function returns the numb
What's the best way to iterate over Mondays, Tuesdays, and Thursdays between
two dates?I checked the site and list archives but found nothing. My hunch is:
my $days = DateTime::Event::Recurrence->weekly( days => [1,2,4],
start=>$DT1);
my $iter
Hmm, it's not even as simple as that... as I just (re)noticed the dox state
This specifies a recurrence that happens at 10:30 on the day specified by
start => $dt, and then every 11 days before and after $dt.
When trying to figure out why that didn't work. Am I the only one who does
thi
Ah yes, of course.
Thanks!
FWIW the goal is to determine the average percentage of time each several
rooms is occupied for a given period/set of records on an hour by hour basis
over a week. Doesn't that sound like fun?
--
H4sICNoBwDoAA3NpZwA9jbsNwDAIRHumuC4NklvXTOD0KSJEnwU8fHz4Q8M9i3sGzkS7BBrm
I've run into a bit a bit of a problem using a format containing %H with raw
data. The data I have uses both 0:00 and 24:00, one being the beginning of the
day, the other the end. I know that the docs state %H accepts 0-23, but it
doesn't seem unreasonable that it ought to DWIM, and process 24:00 a
I've run into an odd issue with DateTime and Memoization (often necessary to
get decent performance for processing 10-20k records with repeat dates). I've
processed a lot of data this way but I recently ran into a few records that
caused an infinite loop, below is some simplified sample code that r
But it has everything to do with strptime, if DateTime has this (newer)
POSIXMEHARDER style approach. There's no reason this roll-over couldn't
be handled in the module. I see 24:00 as being an exceptional case, a
rather common and concise means to specify a *whole* day, without having
to do any ma
>- Switched some uses of die() to Carp::croak(), where
Excellent, I've had to add in handlers for $SIG{__DIE__} locally.
Given all its other dependencies, I'd wondered why DT shyed away
from this most useful one ;-)
>- Removed all uses of UNIVERSAL::isa and UNIVERSAL::can.
Is there a ticket number
Multiply?
Can't you get the duration of the difference in seconds,
divvy that up, and then repeatedly add it to the previous result?
--
Free map of local environmental resources: http://CambridgeMA.GreenMap.org
--
MOTD on Prickle-Prickle, the 73rd of Confusion, in the YOLD 3173:
Any damn fool can
I may be stating the obvious, but it also has the advantage of
sounding like something that takes a licking and keeps on ticking.
--
Free map of local environmental resources: http://CambridgeMA.GreenMap.org
--
MOTD on Setting Orange, the 18th of The Aftermath, in the YOLD 3173:
Environmentalism i
>I am enjoying DateTime::TimeZone as usual. I have a unique need to be able
>to somehow know all the countries, cities, and postal codes that are in a
>certain TimeZone, can anyone recommend a way to do that?
What you ask is nigh impossible, at least in the most general case as phrased*
Besides be
You've still not really clarified your intent, but you appear to mean only
large cities, in which case you can scrape much of this information from
wikipedia as Time zone is a standard field in the RHS info box for cities.
I'm sure you could piece together a simplified version of the rest as well.
>2. it would mean different API
>3. as you say, it doesn't do everything DateTime can.
I want a hippopotamus for Christmas.
>1. it's XS
> http://search.cpan.org/src/MSERGEANT/Time-Piece-1.13/Piece.xs
But it can't be vegeterian or live in the water.
Re: 3, #1 from your POD:
(1) Target those wh
18 matches
Mail list logo