Bio-SDRS
view release on metacpan or search on metacpan
lib/Bio/SDRS.pm view on Meta::CPAN
push @pids, $pid;
}
elsif (defined $pid) {
sleep $iproc;
$file = "$tmpdir/sdrs.out.$iproc";
open (ECOUT, ">$file") || die "can not open EC50 output file: $!\n";
#
# The following statement causes the system to write each output line
# to disk immediately, rather than waiting for a buffer to fill.
#
select((select(ECOUT), $| = 1)[$[]); # Change buffering to line by line.
my $last_dose = $self->{LDOSE};
my $icount = 0;
for (my $dose = $self->{LDOSE};
$dose < $self->{HDOSE} * $self->{MULTIPLE};
$dose *= $self->{MULTIPLE}) {
if ($dose - $last_dose > $self->{STEP}) {
$dose = $last_dose + $self->{STEP};
}
if (($icount++ % $self->{MAXPROC}) == $iproc) {
print ECOUT $self->_scan_dose_point($dose);
( run in 0.502 second using v1.01-cache-2.11-cpan-b61123c0432 )