Change:
to:$userinput = $name;
$name = $userinput;
I think you were missing the warning that I see because your shebang line is messed up (add a space before the -w), and you are probably bypassing it anyway by invoking your script with the perl executable on the command line. Also add:
use strict and warningsuse warnings;
The same goes for $userinput = $ip;
In reply to Re: DNS Lookup
by toolic
in thread DNS Lookup
by jaldama
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |