Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: repeat characters in text

by blazar (Canon)
on May 03, 2007 at 10:43 UTC ( #613351=note: print w/replies, xml ) Need Help??


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]}"; # :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://613351]
help
Chatterbox?
[stevieb]: daughter arrived from SF with Gandalf the bunny for his first international flight. Very wonderful Friday... like the holidays came early :)

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2016-12-03 04:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (52 votes). Check out past polls.