Hello,
I'm trying to make this piece of code work on MS Windows 2003 Server (ActivePerl 5.8.8):
#! perl use File::Temp; $File::Temp::KEEP_ALL = 1; # Tempfile to store command output. my $tf = new File::Temp(); my $tfname = $tf->filename; print "$tfname"; #print $tf "HELLO"; system("date /t >>$tfname");
But it fails with this error:
The process cannot access the file because it is being used by another process.I've tested the code on Linux and it works fine. Is module behaviour different from Win32 to linux? Am I missing something?
Thanks in advance
In reply to File::Temp problems on Win32 by trek1s
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |