in reply to regexp w/ special chars
$string =~ s/\Q$token\E/$date/; [download]
Or you could use quotemeta() on the string beforehand?