Thread Aufsplitten von Dateinahmen
(10 answers)
Opened by Rippchen at 2004-09-02 15:38
[quote=pq,02.09.2004, 16:18]
da würde ich das hier $part = join "", (split /(?=-|_)/, $filename)[0..1]; vorziehen.[/quote] ach, was red ich. $part = join "", (split /(?=-|_)/, $filename, 3)[0..1]; 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: ![]() ![]() |