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 <a>
word1
word2
word3
</a>
and then do the very same analysis on <a>
word4
word5
</a>
and <a>
word6
word7
</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.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|