in reply to Printing format
The left and right values are concatenated together in a previous step.I'll assume this is necessary for something else, otherwise it would be much easier if your arrays looked like this: @UAS = ( [8,0], [9,0], ...);
But with the concated elements, I only see the general solution of splitting them up again, like this:
sub PRINT { printf("\n\t\t%-10s %-10s %-10s\n",'UAS','LCV','DM'); while(@UAS || @LCV || @DM) { my @args = map { (defined) ? split(' ') : ('','') } shift(@UAS), shift(@LCV), shift(@DM); printf("\t\t" . '%3s %-5s ' x 3 . "\n", @args); } }
-- Hofmator
|
|---|