note
ChOas
Personally I'm pretty fond of modifying the input record seperator:<br>
<code>
local $/="</end>\n";
my @group = map {[/<ref id="([^"]+)">/g]} <DATA>;
print "New Group: @$_\n" for @group;
__END__
<ref id="ref1">
<ref id="ref2">
<ref id="ref3">
</end>
<ref id="ref4">
<ref id="ref5">
</end>
<ref id="ref6">
<ref id="ref7">
<ref id="ref8">
</end>
</code><br>
Outputs:<br>
New Group: ref1 ref2 ref3<br>
New Group: ref4 ref5<br>
New Group: ref6 ref7 ref8<br>
<br>
(edit: Ah, so is GrandFather, read right past his response, 'ooops')<br>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-3568">
<BR>
GreetZ!,<BR><UL>ChOas</UL>
<BR>
<FONT SIZE="1">print "profeth still\n" if /bird|devil/;</FONT>
</div></div>
705389
705389