http://www.perlmonks.org?node_id=1190396


in reply to Re^2: Confession of a hard headed Monk
in thread Confession of a hard headed Monk

Bad, bad, bad logic in a part of the usage code I provided above...

# If you don't add 1 to the result of the division below, # you will get an additional column. my $splicer = (scalar(@list) / $columns) + 1;

It should be...

# Add 1 to the result of the division below # if list is not evenly divisible by $columns. my $splicer = int(scalar(@list) / $columns); $splicer += scalar(@list) % $columns > 0 ? 1 : 0;

Sorry for not thoroughly testing that part. 8(

No matter how hysterical I get, my problems are not time sensitive. So, relax, have a cookie, and a very nice day!
Lady Aleena