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:lina.lastn...@gmail.com] Sent: Monday, April 23, 2012 10:45 AM To: beginners@perl.org 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: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/