this line:
if (m#^(\d{1,2}/\d{1,2}/\d\d{2,4})#) {
better written as:
if (m#^(\d{1,2}/\d{1,2}/\d{2,4})#) {
if the date is always in MM/DD/YYYY you could just use that pattern exclusively:
if (m#^(\d\d/\d\d/\d\d\d\d#) {
------------------------------------------
- Kevin, perl coder...