Evel has asked for the wisdom of the Perl Monks concerning the following question:
Refer to https://i.stack.imgur.com/qVg5P.png picture.
I adding the content into a ListboxSelect of Tk GUI by following format code, seems in the output of command line, everything works and align correctly. but when the content shown in the GUI, always not align as I wanted.
Any suggestion on this issue?
$lb_ccrdetail->insert( 'end', sprintf( "%s%s%-50s%s", $ccidstring, ' 'x (15-length($ccidstring)), $prodstring, #' 'x (20-length($prodstring)), $detailstring ) );
|
---|
Back to
Seekers of Perl Wisdom