Will result in: ' BA 'my $padded = ' ' x 5; substr($padded, 2, 1) = 'A'; substr($padded, 1, 1) = 'B';
In reply to Re: How do I insert characters at certain positions in a string?
by mdillon
in thread How do I insert characters at certain positions in a string?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |