in reply to Re^2: How to avoid "Use of uninitialized value" with printf?
in thread How to avoid "Use of uninitialized value" with printf?
Please tell me how I could have presented my question better/more clearly so that I can ensure I do so in future?
:) Yeah, I probably should not have lead with that comment, not that I remember , nor can I even guess what I was referring to. Your question is very well presented (practically perfect). Mea culpa.
Are you clear on the issue of the warning?
Here is another way with Perl6::Form ( also documented at http://search.cpan.org/dist/Perl6-Doc/share/Exegesis/E07.pod ) based on demo_columns
the more verbose version
use Perl6::Form; print form {layout=>"across"}, '{:[{10}]:} {:[{10}]:} {:[{10}]:} {:[{10}]:} {:[{10}]:} {:[{10}]:} ', \@UACS , \@UACS , \@UACS , \@UACS , \@UACS , \@UACS ;
or the same thing using the repeat operator
use Perl6::Form; print form {layout=>"across"}, '{:[{10}]:} ' x 6 , ( \@UACS ) x 6;
Place either right after @UACS = sort(@UACS);, no splicing required, and @UACS remains full afterwards
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to avoid "Use of uninitialized value" with printf?
by bobdabuilda (Beadle) on Apr 12, 2012 at 00:38 UTC | |
by Anonymous Monk on Apr 12, 2012 at 01:05 UTC |