in reply to Re^2: Runing "regular" code with threaded perl
in thread Runing "regular" code with threaded perl
system("xspec - ${tmp}.xcm");
open(DAT, "${tmp}xsfit.dat") || die ("Could not open file!");
whereas this does not:
bjmsys("xspec - ${tmp}.xcm", $v);
open(DAT, "${tmp}xsfit.dat") || die ("Could not open file!");
where------------
sub bjmsys {
my $arg=shift;
my $v=shift;
$v=0 unless defined $v;
my $status;
print "$arg\n" if $v>1||$v<0;
$status=system("$arg");
print "return status = $status\n" if $v>1;
return $status;
}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Runing "regular" code with threaded perl
by massa (Hermit) on Jul 10, 2008 at 10:24 UTC |