http://www.perlmonks.org?node_id=69043


in reply to How do I insert (not overwrite) into a string?

I know this is kinda long winded but if u wanna insert into a string split the thing into its constituent characters and bung em in an array then u can insert whatever u want wherever u want.....

@bitsOfString = split(//,$yourString);

Slán

Fian. Edited by davido: Added code tags.