michael wang 写道: > Hi, > > if I have something like xxxx20080503, how can I get the date a year ago, > such as xxxx20070503 in perl? >
you may extract the exact date from the original string (ie, use a regex), then convert it to any date form you wanted (use POSIX::strftime or something like that). good luck. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/