in reply to print statement changes results!
My guess is that if you do:
while( $text =~ /($pattern)/g ) { my $startindex = $-[0]; my $endindex = $+[0]; my $capture = $1; my $vsoChars = $VShape->Characters; $vsoChars->{Begin} = "$startindex"; $vsoChars->{End} = "$endindex"; $vsoChars->{Text} = $capture; $vsoChars->SetProperty( 'CharProps', 1, $color ); }
or even:
while( $text =~ /($pattern)/g ) { my $vsoChars = $VShape->Characters; $vsoChars->{Begin} = "$-[0]"; $vsoChars->{End} = "$+[0]"; $vsoChars->{Text} = $1; $vsoChars->SetProperty( 'CharProps', 1, $color ); }
they will also work.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: print statement changes results!
by cr8josh (Sexton) on Jun 06, 2011 at 17:57 UTC | |
by ikegami (Patriarch) on Jun 06, 2011 at 18:09 UTC | |
| |
|
Re^2: print statement changes results!
by CountZero (Bishop) on Jun 06, 2011 at 17:51 UTC | |
by BrowserUk (Patriarch) on Jun 06, 2011 at 18:11 UTC |