Re: date info 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: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/



