Changeset acce401 in lab.git
- Timestamp:
- May 19, 2012 10:16:33 AM (12 years ago)
- Branches:
- master, trunk
- Children:
- ce3a7e2
- Parents:
- 30965f7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
misc/dnsbench.pl
rdff3e87 racce401 6 6 use Net::DNS; 7 7 8 my $hostlist = shift @ARGV ||die "usage: $0 list_of_hosts [nameserver]";8 my $hostlist = shift @ARGV or die "usage: $0 list_of_hosts [nameserver]"; 9 9 if (! -r $hostlist) { 10 10 die "$0: cannot read $hostlist"; … … 25 25 26 26 27 open LIST, "<$hostlist";28 while (my $host = < LIST>) {27 open my $list, '<', $hostlist or die "$0: filename: $!"; 28 while (my $host = <$list>) { 29 29 chomp $host; 30 30 my $query = $res->send($host);
Note: See TracChangeset
for help on using the changeset viewer.