in reply to [Solved] Printing a 2D array into constant-sized columns

There are builtins like sprintf and printf .

Do they not bring the solution to your task?

If they don't, the keywords to look for on CPAN would be "Format" or "Formatter", I think. Or did I misunderstand your task?

Cheers, Sören

Créateur des bugs mobiles - let loose once, run everywhere.
(hooked on the Perl Programming language)

  • Comment on Re: Printing a 2D array into constant-sized columns

Replies are listed 'Best First'.
Re^2: Printing a 2D array into constant-sized columns
by mascip (Pilgrim) on Apr 01, 2014 at 11:53 UTC

    Thank a lot! Using the keyword "format" I found Text::Column which does exactly what I need.

    I didn't know that printf could deal with arrays, that's good to know! I will learn how to use these at some point, but it feels like learning a new language, so I keep on delaying.

    Problem solved :-)