Thread String fester Länge mit Platzhalter
(8 answers)
Opened by hansi66 at 2011-01-04 12:04 Code (perl): (dl
)
1 2 3 4 5 6 7 my $lenght=100; for(qw(Beispielname Texttext foo bar Nachname)) { my $str="** $_ $add".('*' x $lenght); $str=sunbtr($str,0,$lenght); print "$str\n"; } Last edited: 2011-01-04 12:41:36 +0100 (CET) |