in reply to pdflatex and system

try
system ("./lib/texmf/miktex/bin/pdflatex $outputfile.tex>$outputfile.2 +.log")
(note: no spaces around ">").

For asynchronous execution of an external command, check out exec() fork() or Win32::Process.

Update: bart corrected my error about exec().


holli, /regexed monk/