No, before you can help yourself. Try Linux or FreeBSD or OpenBSD instead of Redmond crap. Now serious. try:
$a = "some text...";
print OUTPUT $a;
Now, change the /tmp/file and stuff to anything you want to.
vfs ("The Perl Monkey") :)