in reply to Re^4: eval not working the way I expected?
in thread eval not working the way I expected?
for (sort keys %totalcalls)
{
my $start_i_f = ($start{$_}) ? $start{$_} : 0;
$report_stop{$_} = sprintf("%.2f", ( ( $stop_inbound{$_} / 60000 ) / $stop{$_})) if $stop_inbound{$_};
if (defined $crank{$_}) {
$report_ccr{$_} = sprintf("%.2f" , ( ( $start_i_f / ($totalcalls{$_} - $crank{$_}) ) * 100 ));
$report_asr{$_} = sprintf("%.2f" , ( ( $start_i_f / $totalcalls{$_}) * 100 ));
} else {
$report_asr{$_} = sprintf("%.2f" , ( ( $start_i_f / $totalcalls{$_}) * 100 ));
}
}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: eval not working the way I expected?
by ikegami (Patriarch) on Jan 10, 2008 at 18:20 UTC | |
by convenientstore (Pilgrim) on Jan 11, 2008 at 04:00 UTC | |
by parv (Parson) on Jan 11, 2008 at 05:14 UTC | |
by ikegami (Patriarch) on Jan 12, 2008 at 05:39 UTC | |
by tye (Sage) on Jan 12, 2008 at 06:34 UTC |