mirror of
https://github.com/rfc1036/whois.git
synced 2026-01-03 06:15:17 +00:00
18 lines
245 B
Perl
Executable File
18 lines
245 B
Perl
Executable File
#!/usr/bin/perl
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
use warnings;
|
|
use strict;
|
|
|
|
while (<>) {
|
|
chomp;
|
|
s/#.*$//;
|
|
s/^\s+//; s/\s+$//;
|
|
next if /^$/;
|
|
|
|
die "format error: $_" if not /^(xn--[a-z0-9-]+|[a-z]+)$/;
|
|
|
|
print qq| "$_",\n|;
|
|
}
|
|
|