in reply to Re: repeat characters in text
in thread repeat characters in text
You have the right idea, you just need a different operator - print 'a', '!' x 5; will do it. Though Perl doesn't care, I prefer not to use double quotes unless I expect interpolation to be taking place.
print "a@{['!' x 5]}"; # :-)
In Section
Seekers of Perl Wisdom