#!/usr/bin/perl -w use strict; chomp(my $old = <>); my $temp1; my $temp2; my $count; my $i; while(<>) { $count = 0; chomp($_); for($i=0;$i 1 or $count == 0) { die("apgc failed bad bit change"); } $old = $_; }