#!/usr/bin/perl -w use strict; my $total = 0; my $success = 0; FILE: for my $file ( @ARGV ) { open DECISION, $file or die; $total++; my $prior_history; my $disposition; while ( ) { if ( m{PRIOR HISTORY:(.*?)} ) { $prior_history = $1; } if ( m{DISPOSITION:(.*?)