Hi,
Here's a code which I need to cut short using file handling... Please hv a look into it..
[CODE=perl]
#!/usr/bin/perl
use strict;
print "Enter 1 for device1\n";
print "Enter 2 for device2\n";
...
....
...
..
..
print "Enter n for device n \n";
[/CODE]
Depending on the user input, I need to run the command -
nslookup $x where x is the number from 1 to n and $x is a unique value for each device n.
Could you please tell me how I can implement this?
Thanks in advance,
Karthik
Here's a code which I need to cut short using file handling... Please hv a look into it..
[CODE=perl]
#!/usr/bin/perl
use strict;
print "Enter 1 for device1\n";
print "Enter 2 for device2\n";
...
....
...
..
..
print "Enter n for device n \n";
[/CODE]
Depending on the user input, I need to run the command -
nslookup $x where x is the number from 1 to n and $x is a unique value for each device n.
Could you please tell me how I can implement this?
Thanks in advance,
Karthik
Comment