Re: text replacement+

2003-11-17 Thread James Edward Gray II
On Nov 16, 2003, at 10:22 PM, R. Joseph Newton wrote: Kiko Uehara wrote: If my question doesn't have enough information, please let me know. Sure doesn't. The most important information concerning any program is what real-world purpose [even if simulated] it serves. The coding comes later. I'm

Re: text replacement+

2003-11-16 Thread R. Joseph Newton
Kiko Uehara wrote: > Hi everyone, > > I have a following data to analyze : > - > BlockA > color 0 0 0 > rcolor 1 1 1 > dcolor 2 2 2 > > BloackB > color 0 0 0 > rcolor 1 1 1 > dcolor 2 2 2 > (...and so on) > - > > I want to replace

Re: text replacement+

2003-11-14 Thread Jeff 'japhy' Pinyan
On Nov 15, Kiko Uehara said: >- > BlockA >color 0 0 0 >rcolor 1 1 1 >dcolor 2 2 2 > > BloackB >color 0 0 0 >rcolor 1 1 1 >dcolor 2 2 2 >- > BlockA rcolor "1 1 1" to "4 4 4" > BlockB rcolor "1 1 1" to "0 0 0". > >I have variables like

Re: text replacement+

2003-11-14 Thread Rob Dixon
Kiko Uehara wrote: > > I have a following data to analyze : > - > BlockA > color 0 0 0 > rcolor 1 1 1 > dcolor 2 2 2 > > BloackB > color 0 0 0 > rcolor 1 1 1 > dcolor 2 2 2 > (...and so on) > - > > I want to replace > BlockA rcolor

Re: text replacement+

2003-11-14 Thread James Edward Gray II
On Nov 14, 2003, at 4:13 PM, James Edward Gray II wrote: my $block; while () { if (/^(Block[A-Z]+)/) { $block = $1; } elsif (/^\s+([rd]?color)/) { my $color = $1; s/\d+ \d+ \d+$/$changes{"${block}_$color"}/ if exists $

Re: text replacement+

2003-11-14 Thread John W. Krahn
Kiko Uehara wrote: > > Hi everyone, Hello, > I have a following data to analyze : > - > BlockA > color 0 0 0 > rcolor 1 1 1 > dcolor 2 2 2 > > BloackB > color 0 0 0 > rcolor 1 1 1 > dcolor 2 2 2 > (...and so on) > - > > I want

Re: text replacement+

2003-11-14 Thread James Edward Gray II
On Nov 14, 2003, at 3:57 PM, Kiko Uehara wrote: Hi everyone, Howdy. I have a following data to analyze : - BlockA color 0 0 0 rcolor 1 1 1 dcolor 2 2 2 BloackB color 0 0 0 rcolor 1 1 1 dcolor 2 2 2 (...and so on) - With ya so far.