You have to look at the sleep bubble on the Chomp then stop when it pops. You should stop dashing because you'll slide a little when you stop.
To hit a perfect, try to move if the ball pitched to you is moving. Use L often to re-position yourself in the middle.