mirror of
https://github.com/rfc1036/whois.git
synced 2026-04-03 06:40:52 +00:00
18 lines
225 B
Prolog
Executable File
18 lines
225 B
Prolog
Executable File
#!/usr/bin/perl
|
|
|
|
use warnings;
|
|
use strict;
|
|
|
|
while (<>) {
|
|
chomp;
|
|
s/#.*$//;
|
|
s/^\s+//; s/\s+$//;
|
|
next if /^$/;
|
|
|
|
die "format error: $_" if not
|
|
(my ($a, $b) = /^(-\w+)\s+([\w\d\.:-]+)$/);
|
|
|
|
print qq| "$a",\t"$b",\n|;
|
|
}
|
|
|