Perl substr replacement help.?

Steven ~

New member
I'm using substr in perl to add missing characters to a string.

ex.
substr($string, length($string), 23-length($string), ????)

After this, I need to add a character for each missing character, how would I do this? :x

For an example.

I enter the number 19563, but the length of the string needs to be at least 10 characters, so instead of it being just 19563, it will be 1956300000.

a friend helped me with this a while ago, and gave me an answer using substr.
 
Back
Top