Perl
0
Вклад в тег
#!/usr/bin/perl -w
use strict;
open(F1, "<","test.txt") || die $!;
while(<F1>)
{
chomp;
/^\bValue\b\s+:\s+([A-Z0-9]+)$/g;
next unless $1;
if ($1 eq "A1")
{
print "$_\n" and exit 0;
}
}
close(F1);