in reply to Improper escaping error when executing system command

In a double-quoted string, \ is used to escape characters with special meanings. Since you actually want a \ in the string, put \\ instead.

Update: system doesn't return the output of the date command. You want chomp($date = `date`) for that. And I'm unclear on what that \t is supposed to be for.