mirror of
https://github.com/mi57730/a2d.git
synced 2024-08-14 22:28:56 +00:00
14 lines
215 B
Perl
14 lines
215 B
Perl
|
#!/usr/bin/env perl
|
||
|
|
||
|
use strict;
|
||
|
use warnings;
|
||
|
|
||
|
my %terms;
|
||
|
while (<STDIN>) {
|
||
|
foreach my $term (split /\b/, $_) {
|
||
|
$terms{$term} = 1 if $term =~ /^L[0-9A-F]{4}$/;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
print scalar(keys %terms), "\n";
|