small fix in perly.c to avoid passing a read-only template to mktemp(3).