albascura has asked for the wisdom of the Perl Monks concerning the following question:
Hi everyone. I'm fairly new to perl and programming in general, and I don't understand how to do the following. If you would be kind enough to explain it to me, I would be really grateful.
I searched around the forum but I didn't find it, so if you could point to some analogous thread it will be fine.
Basically I have a text input like the following:
<a> word1 word2 word3 </a> <a> word4 word5 </a> <a> word6 word7 </a>
What I would like to do, is to read the file, but analyze any different <a></a> block apart from the other. Basically, I have to perform some kind of analysis on
and then do the very same analysis on<a> word1 word2 word3 </a>
and<a> word4 word5 </a>
I have absolutely no clue on how to do it, I confess. So any kind of help (readings, suggestions, any other topics referring to similar problems) would be really appreciated.<a> word6 word7 </a>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Repeating the same command in different portions of input
by tobyink (Canon) on Jan 15, 2013 at 10:37 UTC | |
by albascura (Novice) on Jan 15, 2013 at 10:47 UTC | |
|
Re: Repeating the same command in different portions of input
by aitap (Curate) on Jan 15, 2013 at 12:38 UTC | |
|
Re: Repeating the same command in different portions of input
by Anonymous Monk on Jan 15, 2013 at 10:35 UTC | |
by albascura (Novice) on Jan 15, 2013 at 10:45 UTC | |
|
Re: Repeating the same command in different portions of input
by Kenosis (Priest) on Jan 15, 2013 at 16:07 UTC | |
by albascura (Novice) on Jan 15, 2013 at 20:50 UTC | |
by Kenosis (Priest) on Jan 15, 2013 at 21:03 UTC |