Bob Showalter <[EMAIL PROTECTED]> writes: > Or, you can use something like Date::Manip which handles the '2 weeks ago' > type of expressions. It has its own UnixDate function that is similar to > POSIX::strftime.
Aha... now we're talking. Date::Manip is what I was after: cat test.pl: #!/usr/local/bin/perl -w use Date::Manip; print &UnixDate((DateCalc("now","-3weeks")),"%m%d%Y_%T"). "\n"; There is probably even a simpler formulation. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>