open_tempfile unsupported file or mode

I have pl script which include open_tempfile (DATA,"> test"); when run it gave me unsupported file or mode, any reason?

I have pl script which include open_tempfile (DATA,"> test"); when run it gave me unsupported file or mode, any reason?