What you need is the "x" operator (http://perldoc.perl.org/perlop.html#Multiplicative-Operators):
So, the following command: print "*" x 20 . "\n"; produces the following output: ******************** Jack -----Original Message----- From: lina [mailto:[email protected]] Sent: Monday, April 23, 2012 10:45 AM To: [email protected] Subject: how to quick print a series of * Hi, suppose I wish to print 20 * seems print "*{20}" not work. Thanks ahead for your sugestions, Best regards, -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/ -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
