<?xml version="1.0" encoding="windows-1252"?>
<node id="234118" title="build array of geometry data" created="2003-02-10 08:57:10" updated="2004-08-17 19:48:09">
<type id="115">
perlquestion</type>
<author id="234098">
Frippe</author>
<data>
<field name="doctext">
Hi

If a geometry data use this ex.
&lt;CODE&gt;
[1 1 1 1 1 1] [4 4 4 4 4 4]
&lt;/CODE&gt;
&lt;CODE&gt;
[ 123 123 123
  123 123 123
  ....... ]
&lt;/CODE&gt;
&lt;CODE&gt;
"P"
[ -1 1 1
  1 1 -1
  1 1 1 ]
&lt;/CODE&gt;

So what I'm look for is how to pick up a begin character
and end character so I could extrate the 4 array
say &lt;code&gt;my $begin1 = '['&lt;/code&gt; and &lt;code&gt;my $end1 = ']'&lt;/code&gt;
build a array between begin and end
I have test with simple qw but I like to
search and match a begin and end character to.
&lt;p/&gt;
I could give more example but the script would pick
up 'renderman rib' file and pick the data between &lt;code&gt;[]&lt;/code&gt;
and build a new data from that.
&lt;p/&gt;
regards,&lt;br/&gt;
Fredrik Gustafsson

&lt;p/&gt;
&lt;small&gt;&lt;b&gt;update&lt;/b&gt; (broquaint): changed &lt;code&gt;&lt;code&gt;&lt;/code&gt; tags to formatting&lt;/small&gt;
</field>
</data>
</node>
