Ping and Perl

Hi There

i have little situation that i could us some help with. We have a dhcp server, but the problem is if that a machine has been offline for a while it loose it's lease and so if you ping it you get unknown host

if there a way using perl that it will continue to try and ping it, even tho it is getting unknown host.

thanks

Adam

???

while true; do
  ping -c N_PINGS www.no-answer-there.com && break
  sleep N_SECONDS
done 2>/dev/null # get rid of error messages