Hello,

There is nothing wrong in your perl program.  The problem is that not all
nic servers produce the same output.  The line with "created on" exists
for some names only, not all.  I tried yahoo.com which had it and
netscape.com which didn't have it.  So, you should figure out a better
way to get your data.

Hope this helps,,,

Aziz,,,

 
In article <008e01c11479$93473400$[EMAIL PROTECTED]>, "Tyler
Longren" <[EMAIL PROTECTED]> wrote:

> Hello everyone,
> 
> How can I take the output of a command, put into a scalar, and then put
> it into a file?  Here's a portion of what I have: open(FP,
> ">>$outfile");
> my $command = `whois $h | grep 'created on'`; print "$command";
> print FP "$h $command\n";
> 
> The above code doesn't work though.  There's nothing in the $command
> variable.  The only thing that gets printed to $outfile is $h.
> 
> Thanks everyone
> 
> Tyler Longren
> Captain Jack Communications
> [EMAIL PROTECTED]
> www.captainjack.com
> 
> 
>

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to