in reply to How to remove character at certain position in the String.....
This is a sample:
use strict; my $a; my $from = 2; my $len = 2; while( $a = <DATA> ) { chomp $a; print "Before: '$a' "; $a = $1 . $2 if $a =~ /^(.{$from}).{$len}(.*)$/i; print "After '$a'\n"; } __DATA__ 12345678 yellow a xx yyy
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How to remove character at certain position in the String.....
by jweed (Chaplain) on Dec 02, 2003 at 09:43 UTC | |
by Abigail-II (Bishop) on Dec 02, 2003 at 10:19 UTC | |
by bronto (Priest) on Dec 02, 2003 at 10:47 UTC |