Thread Nur jedes zweite Zeichen übrig lassen?
(11 answers)
Opened by Brenner at 2010-01-29 13:57 Code (perl): (dl
)
$string =~ s/(.)./$1/g; 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 |