- or download this
use strict;
use warnings;
- or download this
local $/ = 'Frame: ';
- or download this
while (<>) {
}
- or download this
next unless my ($frame) = /(\d+)/;
- or download this
my $count = grep /C/, split /\n/;
- or download this
print "Frame: $frame " . $count . "\n";
- or download this
use strict;
use warnings;
...
my $count = grep /C/, split /\n/;
print "Frame: $frame " . $count . "\n";
}
- or download this
Frame: 11 7
Frame: 12 7