Howdy:

I'm trying to do the following (which may have
been created already) in perl:

* create two variables

var1 = this will be sunday of current week always
var2 = this will be saturday of current week always

I'm not sure how I can use 'localtime' as a tool
for identifying var1 and var2.

I mean, I think I can work around this:

($mday, $mon, $year) = (localtime())[3 .. 5];

Which gives me day-of-month, month and year, but
how to used that as a focal point to get
that saturday and sunday of the current week
without some silly if-then-else loop.

Perhaps I am going about this the wrong way.
It seems like var1 and var2 will actually be
large formulas.

Suggestions?

-X

Reply via email to