in reply to WHOIS help
I would put single quotes around your hard-coded ip address:my $sip= 192.35.75.55; #print "IP ADDRESS: $QueryIn "; # my $QueryIn = <STDIN>; my $QueryIn = $sip; chomp $QueryIn;
This will force it to be a string, and hence later on when you are doing a string comparison (using Queryin eq ""), this should evaluate correctly.my &sip = '192.35.75.55';
Also, since you are not reading this value from SYSIN, you do not need the chomp line. Now, while this in itself will not be causing a problem, it is probably safer.
What does your sub ShowResults do?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: WHOIS help
by pmonk (Novice) on Aug 27, 2001 at 22:07 UTC |