Just recently, a co-worker and I were discussing code optimization and "preferred" methods of performing common tasks in perl. The code in question works but might not be the best or the recommended way of doing it.
So, this question concerns rounding. Here is said code:
sub roundThatBadDog {
my $seconds = shift;
return int ($seconds + .5);
}