in reply to Building strings of specific length

You mean the x operator?

print '*' x 3;