Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: add text to a string

by zakame (Pilgrim)
on Jun 02, 2006 at 10:28 UTC ( #553258=note: print w/replies, xml ) Need Help??


in reply to add text to a string

Would this do?
$str = 'bcde'; $new = join "" => a => split // => $str; # $new = 'abcde';
That's warnings-tested, strict-approved. =)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2019-05-22 04:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (138 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!