in reply to Trouble matching more than one line

If I understand the question correctly
if ($Hap =~ m/SomeText\n(.*?INT8U.*?)\nSomeText/s) { print "$1"; }