There's not a lot to go on here. Could you give us an example of the format of the lines in the file $provision_log ? Are you sure you've captured the transaction IDs correctly? (print them out to make sure).
Based on the format you've given, the transaction ID should be capturable by:
my ($transaction_id) = $transaction_line =~ /:(\d+)$/;
(be sure to wrap that in an if to make sure you're getting a match!)
Oh, and a little 'elegantizer' for reading from the PROLOG file handle:
while (my $pro_logline = <PROLOG>) {
chomp $pro_logline;
Philosophy can be made out of anything. Or less -- Jerry A. Fodor |