http://qs321.pair.com?node_id=613224


in reply to 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.

--
I'd like to be able to assign to an luser

Replies are listed 'Best First'.
Re^2: repeat characters in text
by blazar (Canon) on May 03, 2007 at 10:43 UTC
    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]}"; # :-)