in reply to Re^2: Runing "regular" code with threaded perl
in thread Runing "regular" code with threaded perl

bjmsys("xspec - ${tmp}.xcm", $v);

Now it would be interesting to know what this mysterious sub bjmsys does.

I somehow suspect that it launches an external application in the background, while it really should just launch it and wait for it to finish.

Replies are listed 'Best First'.
Re^4: Runing "regular" code with threaded perl
by kingskot (Sexton) on Jul 10, 2008 at 07:48 UTC

    I don't understand it at all, but it seems like that was the problem. bjmsys is my own routine, it's just a wrapper around system(), where it prints the argument to the screen before calling system() if $v > 0. If I replace bjmsys with system in the top level code things seem to run fine.

    As I said, I don't get it at all, but I just wanted the stupid thing to work and I guess I have my quick and dirty fix, so thanks!