Don't know if/when this will get looked at but I was unaware that a do-while loop didn't operate like a loop so last doesn't "work" with it. My problem is I have a structure similar to this. I'm guessing what I need is a way to keep reading the next line in the file, but at times I had problems assigning $aVar = <AFile>. Would a similar loop construct with $aVar = <Afile> being the final statement in that bare loop work?
while(<AFile>)
{
if(found keyword)
do{
process keyword and next few lines
if(done processing){
last
}
}while(<AFile>);
# do some post processing
}
# Continue processing after this in the same file