title: In Perl, how can I parse a date string and subtract days from the date it represents?
body: <p>I have a date in string as in <code>$str1="20120704"</code>. I want to subtract 1 day from that date, and store the value of date as a string in <code>$str2</code>. How can i do it?</p>