Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Runing "regular" code with threaded perl

by djp (Hermit)
on Jul 11, 2008 at 01:38 UTC ( #696872=note: print w/ replies, xml ) Need Help??


in reply to Runing "regular" code with threaded perl

Your problem is you're not checking the return value of bjmsys(). Try:

#bjmsys("xspec - ${tmp}.xcm", $v); bjmsys("xspec - ${tmp}.xcm", $v) == 0 or die ("bjmsys failed"); open(DAT, "${tmp}xsfit.dat") || die ("Could not open file!");
BTW, for a scientist, your analysis of the problem was decidedly unscientific! :-).


Comment on Re: Runing "regular" code with threaded perl
Download Code
Replies are listed 'Best First'.
Re^2: Runing "regular" code with threaded perl
by cdarke (Prior) on Jul 11, 2008 at 07:41 UTC
    The return value from system is checked in the bjmsys subroutine depending on the value of the second parameter, $v.
    Can kingskot confirm that $v is being set to 1, at least for testing?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://696872]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (21)
As of 2015-07-28 14:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (255 votes), past polls