Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Printing a specified number of characters

by kvale (Monsignor)
on Jul 27, 2002 at 14:41 UTC ( [id://185748]=note: print w/replies, xml ) Need Help??


in reply to Printing a specified number of characters

A simple way of doing this is to use the  x repetition operator:
print ' ' x $number, 'A', ' ' x $number_two, "B\n";
-Mark

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://185748]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (8)
As of 2024-04-24 09:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found