Becky has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way of printing a specified number of characters? For example if I want to print 14 spaces followed by an 'A' ?
Extending this, could I do something like:
<code>
$number = 5;
$number_two = 7;
print "$number(spaces) A $number_two(spaces) B \n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Printing a specified number of characters
by kvale (Monsignor) on Jul 27, 2002 at 14:41 UTC | |
Re: Printing a specified number of characters
by tjh (Curate) on Jul 27, 2002 at 15:09 UTC | |
Re: Printing a specified number of characters
by Nightblade (Beadle) on Jul 27, 2002 at 14:43 UTC | |
Re: Printing a specified number of characters
by grinder (Bishop) on Jul 28, 2002 at 22:27 UTC |
Back to
Seekers of Perl Wisdom