3 use warnings FATAL => 'all';
5 my $version = shift or die "no version specified!";
6 my $changelog = shift or die "no changelog file specified!";
8 open my $fh, '<', $changelog
9 or die "can't open $changelog: $!";
12 while (my $line = <$fh>) {
18 elsif ($line =~ /^v?\Q$version\E/) {
23 die "couldn't find heading for $version!"
24 unless $found_version;