Thread Aufsplitten von Dateinahmen
(10 answers)
Opened by Rippchen at 2004-09-02 15:38
[quote=snarf,02.09.2004, 14:14]
Code: (dl
)
$part = join '', ((split /(-|_)/, $filename)[0..2]) da würde ich das hier $part = join "", (split /(?=-|_)/, $filename)[0..1]; vorziehen. 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 |