use warnings ;
use strict ;
use Socket ;
#usage perlDNSLookUp file , where file is the full path ot any text file containing the domain names of the hosts , which ips you would like to retrieve
my $inputFile = $ARGV[0] ;
my $outputFile = "IpNumbers.txt" ;
open (INPUT, "<$inputFile") or
print "could not open the $inputFile!\n";
my @hosts = <INPUT>;
open (OUTPUT, ">$outputFile") or
print "could not open the $inputFile!\n";
foreach (@hosts )
{
print "$_" , "\n" ;
chomp $_ ;
my $address = gethostbyname("$_") ;
# print gethostbyname($_) , "\n" ;
print $address , "\n" ;
print OUTPUT inet_ntoa($address) , "\n" ;
}
close INPUT;
close OUTPUT;
my $cmd = "$outputFile" ;
`$cmd` ;
Getting the Current TabItem when the Tab is not selected in WPF
-
[image: Banner]
This is a quick reminder to self on how to retrieve a TabItem from a WPF
TabControl *when the tab is not currently selected* because I ru...
1 month ago
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!