note
asarih
<ol type="a">
<li>You want to use the /g modifier, and get the number of elements in the array that Perl returns. Read [id://291543] and [id://291641].
<li>Don't even start. That's a futile discussion that goes nowhere.
<li>I'm guessing that you are looking into template solutions, such as [cpan://Mason] and [cpan://HTML::Template]. (I'm sure there are others.)
</ol>
<p>
Did you just post the same questions twice? ([id://292854])
<p>
Oh, I see, there's an extra question there. To answer the extra question, you could try something like: <code>/$data\s+(\w+)/</code> and pick up <code>$1</code> after the match. But really, you should read [isbn://0596002890] and a myriad of other questions on [regular expressions].
292853
292853