Dafür brauchst Du Perl nicht. Wenn Du nur eine Konsole öffnen willst, die sich nicht sofort schließt, reicht vielleicht auch ein kleines Batchfile,
foo.cmd, das Du per Doppelklick starten kannst:
cmd /K "e:&&cd \x\y\z&&pdflatex x.tex"
Funktioniert auch, falls Leerzeichen im Pfad stehen.
Das kannst Du auch natürlich von Perl aus starten:
system('cmd.exe', '/K', q("e:&&cd \x\y\z&&pdflatex x.tex"));
Alternativ: Ende auf Tastendruck:
@echo off
e:
cd /x/y/z
pdflatex x.tex
pause
REM oder: pause > NUL (unterdrückt Tastendruckhinweis)
Alles zu
cmd findest Du
bei MSDN
Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it? -- Brian Kernighan: "The Elements of Programming Style"