use perl instead of sleep 0.2 for portability

On some UNIX derivatives, like HP-UX, sleep with decimals are not supported.