We don't bite newbies here... much | |
PerlMonks |
Print format not workingby catfish1116 (Beadle) |
on Oct 04, 2018 at 17:01 UTC ( [id://1223544]=perlquestion: print w/replies, xml ) | Need Help?? |
catfish1116 has asked for the wisdom of the Perl Monks concerning the following question: below is my code:
Here is my output: Please enter a few lines of text. Press crtl-D when finished rrrrr eeeeee tyyyyy Please enter the width of the column: 10 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 %10 s %10 s %10 s I copied the code straight out of Learning Perl (7th edition). I typed in 3 lines of text as well as the width I wanted. The output should have been the repeating numbers, (1-0), and then below the text lines with aligned columns, (width called in by <STDIN>. I guess it worked ok for the authors ... not so much for me though .... Any help would be appreciated. Thanks, Catfish
Back to
Seekers of Perl Wisdom
|
|