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
In reply to Re: Re: Re: Re: character conversion in a loop...
by blakem
in thread character conversion in a loop...
by snafu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |