in reply to Code Explanation

It does the same thing my_str = ( [ '?' ] * array.size ).join( "," ) does in Ruby.

See also perldoc -f join, and perldoc perlop for the x operator in list context.