Hi all,
I've a  problem that has to presents data into an array in a set of
string with a variable left/right padding depending on the field
position in the arrat. Therefore I'm building a very long printf
format string to be used as:

print <fmt-string> @array;

What I don't like in this solution is that the fmt-string becomes
quickly not easy to read and understand, and therefore maintain. I'm
sure there should be a better approach, like for instance using a
configuration array that can specify each field how has to be
formatted and padded, and then combine the two arrays into a single
string.

But how? Suggestions?

Thanks,
Luca

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to