in reply to Re: Writing to a file
in thread Writing to a file

This wouldn't work because $$ would be the same for every instance of the system call. Since the code is using a for loop, try using the counter variable to uniquely name the files:
system("myscript.prl $id > $tmp_file$i");

/\/\averick
perl -l -e "eval pack('h*','072796e6470272f2c5f2c5166756279636b672');"