Is there any reason why you're not using Net::Whois for this?
Several nodes on Perl Monks already discuss writing code to interface with whois. You can use Super Search to find them.
In reply to Re: WHOIS help
by tomhukins
in thread WHOIS help
by pmonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |