Thread chomp nicht nur für ein \n sondern unendlich viele
(29 answers)
Opened by gregor at 2006-03-23 11:52
[quote=Crian,31.03.2006, 11:59]ich würd es ja "noch richtiger" (*duck*) so machen
Code: (dl
)
1 sub chomp_all { man kann es sich aber auch kompliziert machen... perldoc -f chomp: "It returns the total number of characters removed" \n\n <!--EDIT|pq|1143804003--> 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: ![]() ![]() |