in reply to Re: Re: Re: character conversion in a loop...
in thread character conversion in a loop...
Actually I was refering to the s in your suggestion: s/./g wont even compile.
m/./g or equivalently /./g will work with $& as you suggested. s/.// will also work (note the lack of the g modifier), though it destroyes the original string.
I'm guessing you meant /./g which is why I think it was a typo.
-Blake
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: character conversion in a loop...
by John M. Dlugosz (Monsignor) on Aug 06, 2001 at 04:18 UTC |