Frippe has asked for the wisdom of the Perl Monks concerning the following question:
[1 1 1 1 1 1] [4 4 4 4 4 4]
[ 123 123 123 123 123 123 ....... ]
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 my $begin1 = '[' and my $end1 = ']' 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."P" [ -1 1 1 1 1 -1 1 1 1 ]
I could give more example but the script would pick up 'renderman rib' file and pick the data between [] and build a new data from that.
regards,
Fredrik Gustafsson
update (broquaint): changed <code> tags to formatting
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: build array of geometry data
by MZSanford (Curate) on Feb 10, 2003 at 14:16 UTC | |
by Frippe (Acolyte) on Feb 10, 2003 at 15:45 UTC | |
by MZSanford (Curate) on Feb 10, 2003 at 16:17 UTC | |
by Frippe (Acolyte) on Feb 10, 2003 at 19:37 UTC | |
by CharlesClarkson (Curate) on Feb 11, 2003 at 06:50 UTC | |
by Frippe (Acolyte) on Feb 10, 2003 at 19:55 UTC | |
Re: build array of geometry data
by BrowserUk (Patriarch) on Feb 10, 2003 at 17:17 UTC |