in reply to DNS Lookup
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;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: DNS Lookup
by JavaFan (Canon) on Jan 19, 2012 at 22:24 UTC | |
by Anonymous Monk on Jan 20, 2012 at 03:44 UTC | |
Re^2: DNS Lookup
by jaldama (Acolyte) on Jan 19, 2012 at 20:05 UTC |
In Section
Seekers of Perl Wisdom