Do you know where your variables are? | |
PerlMonks |
Re: modifying a string in placeby japhy (Canon) |
on Jan 19, 2006 at 18:16 UTC ( [id://524309]=note: print w/replies, xml ) | Need Help?? |
This substitution, s/([^^#])/$1$1/g, will do what you want. I'd expect it to be the fastest. It replaces any non-^ non-# character with itself twice.
In Section
Seekers of Perl Wisdom
|
|