|
Thread chomp nicht nur für ein \n sondern unendlich viele
(29 answers)
Opened by gregor at 2006-03-23 11:52
[quote=esskar,31.03.2006, 14:31]hmm
Code: (dl
)
1 sub chomp_all {das klappt nicht. du setzt $count nicht und $retval += $count liefert außerdem immer true, sobald $retval > 0 ist. Code: (dl
)
1 sub chomp_all {Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wie frage ich & perlintro brian's Leitfaden für jedes Perl-Problem |