#!/usr/bin/perl use strict; use warnings; use Date::Parse; my $gpg_verification_line_distance = 0; while () { my $in_header = 1 .. /^$/; my $in_body = /^$/ .. eof; if ($in_header) { print $_; } else { print; $gpg_verification_line_distance++; if (m/PGP output follows \(current time: (?