![]() |
|
go ahead... be a heretic | |
PerlMonks |
do-until inside while loop controlby mtorba (Novice) |
on Nov 23, 2015 at 23:48 UTC ( #1148450=perlquestion: print w/replies, xml ) | Need Help?? |
mtorba has asked for the wisdom of the Perl Monks concerning the following question:
Hi PerlMonks, I did not figure out how to solve this question after take a look in the main discussion lists. I have a data_file like this one:
regex1 - grab general informations about regex1 grab more informations on this line about regex1 grab more informations on this line about regex1 grab more informations on this line about regex1 grab more informations on this line about regex1 grab more informations on this line about regex1 ... grab more informations on this line about regex1 regex2 - grab general informations about regex2 grab more informations on this line about regex2 grab more informations on this line about regex2 grab more informations on this line about regex2 grab more informations on this line about regex2 grab more informations on this line about regex2 ... grab informations on this line regex3 - grab general informations about regex3 grab more informations on this line about regex3 grab more informations on this line about regex3 grab more informations on this line about regex3 grab more informations on this line about regex3 grab more informations on this line about regex3 ... EOF
I'm using a do-until inside a while loop:
It works, but it returns to while loop in the first line after regex2. So, I cannot check for regex2 and get general informations about it. Thanks for any help.
Back to
Seekers of Perl Wisdom
|
|