Open jeteve opened 13 years ago
The example in there produces the output
Ana XXXXXXXXXXXXXXXXXXXXXX
Dave XXXXXXXXXXXXXXXX
Charlie XXXXXXXXXXX
Beth XXXXXXXXXXX
for me, which looks correct (when viewed with a monospace font).
What output did you expect? or why did think that $label-area-width is too big?
Also the code itself looks correct me -- with the >> it calculates the max of the lengths of all keys, without it it would interpreter the list of keys as a string (thus joining it with a space), and calculating its length, then taking the max of one value. NOt very good.
I'm going through the book using rakudo star - jab 2011, and in chapter 3, there's the following issue:
The code in the book says:
The '>>' after key causes the label_area_width to be too big, so I think it should be
Is it right?