Do you mind if I ask why your even bothering with the ASP ? Why not just write the entire thing in perl ?
Anyway.. Adding the following to the top of your perl script should do the trick.
Alright, i lied, the error i'm getting is that it can't open revfile for writing... the thing is... the command i'm using is just to create the file and open it for writing, so of course it isnt going to find it... Doesnt PERL create a file by that name in the directory if it cant find it and open it for writing? Maybe i'm wrong...