My understanding of the CPU utilization is that it's an average. In case 2 your script is spending most of it's time asleep, and waking briefly to check for a key press, so the CPU average is very small.
The initial CPU hit is due to the perl program startup and memory allocation for the process I suspect.
My 2p.
"The future will be better tomorrow."
... from the collected wisdom of George W Bush.