Craig Cardimon wrote: > I have something like this: > > while (<FILE>) > { > if (/<TAG>/ .. /<\/TAG>/) > { > # process line > } > } > > I got this from http://www.perl.com/pub/a/2004/06/18/variables.html. > > My special wrinkle is, I want to process certain sections of > a file, but only if that section passes certain criteria. > > I want to be able to begin processing lines, but I want to be > able to turn processing off and jump to the next <TAG> should > the script encounter a line containing, say, the tag <PDF>.
What kind of file are we talking about? XML? Can you give us a representative sample? The more you know about the input, the better the choices you can make w.r.t. parsing. - Mark. _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs