Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: How do I insert characters at certain positions in a string?

by mdillon (Priest)
on Jun 07, 2000 at 22:47 UTC ( [id://16932]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $padded = ' ' x 5;
    
    substr($padded, 2, 1) = 'A';
    substr($padded, 1, 1) = 'B';
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-03-29 06:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found