in reply to sprintf format and print inconsistencies whilst creating fixed width column

Maybe the "90" is causing problems. Can you decrease it? At least for debugging, try something like:
$a = sprintf ("%-30s %-s\n", "the amount for Apple is ",34); $b = sprintf ("%-30s %-s\n", "the amount for Lemons is", 7);

Replies are listed 'Best First'.
Re^2: MIME::Lite formatting issues
by newbieperlperson (Acolyte) on Dec 19, 2013 at 19:27 UTC
    Thanks for responding, I already tried reducing the length to 7 and the formatting is still messed up.