in reply to strange quotes
print qq(DATE\t "$1-$2-$3"\n);
The beauty of this is that now single/double quote characters are allowed in your expression without backslashing them.
good luck!