in reply to formline and right-justification [SOLVED]

You may want to take a look at perldoc -f printf
perl -e 'printf "%10s", "abc"' # '       abc'


Replies are listed 'Best First'.
Re^2: formline and right-justification
by nostromo (Sexton) on Jun 18, 2006 at 15:08 UTC
    thx sh1tn for your reply, but i think you got me wrong, as my description of the problem was not complete i guess.

    the string can either be longer than the format specification, or shorter. if it is shorter, it should be left-justified.
    if it is longer, it should get cut as usual, but the string's end should be the output, rather than the the string's beginning. so just what the "..."-format specifier does.
    your printf-example does not do that :(