#!/usr/bin/perl -w use strict; use warnings; use String::CRC32; ### for instance my $XmlData = < 100 12989898900 200 24536485582 XML_DATA open my $XmlFile, '<', \$XmlData or die "Can't open XML file: $!"; $/ = ""; ### one trans at-a-time while ( <$XmlFile> ) { my $crc = crc32($_); ### & do whatever needs TBD with the $crc ... }