http://qs1969.pair.com?node_id=379091

jerrygarciuh has asked for the wisdom of the Perl Monks concerning the following question:

Fellow Monks,

I am attempting to track the redemption period status of a client's domain via a script. Initially I used Net::Whois but it produced a "No Match" response (due to the redemption period status at InterNIC I believe).

Because I know running a whois from the commandline is producing the output I want I changed to simply capturing the output via backticks

my $output = `whois somewebsite.com`;.

This produces the following:

[Querying whois.internic.net] [Redirected to whois.OnlineNIC.com] [Querying whois.OnlineNIC.com] [whois.OnlineNIC.com]

My question is why the output is abbreviated when I know the commandline output holds what I need. I thought I was capturing all of the command output with the back ticks.

Any advice greatly appreciated.

jg


_____________________________________________________
"The man who grasps principles can successfully select his own methods.
The man who tries methods, ignoring principles, is sure to have trouble.
~ Ralph Waldo Emerson