Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: How do I insert, (not overwrite) into a string?

by Fian (Novice)
on Apr 02, 2001 at 20:27 UTC ( [id://69043]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://69043]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2024-04-18 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found