in reply to Perl SYSCALL

Ouch!

$hldcmd = "$pathcc\\$hldbat > $pathcc\\$txtname.txt";
Ain't this easier?

And never ever (unless you really know why) write ... "$varname" .... The quotes are not necessary, this is not shell script! They confuse things and waste resources.

Jenda
Enoch was right!
Enjoy the last years of Rome.