String Repetition In Perl you can repeat a string using the x operator. In Ruby you can use the * operator. Resources and References StackOverflow: "How to repeating a String in Ruby one or multiple times"