Thread Stringmanipulation (3 answers)
Opened by fabmo at 2007-09-20 15:42

pq
 2007-09-20 15:48
#99743 #99743
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
Code (perl): (dl )
1
2
3
4
# entweder
my ($zahl) = split m#/#, $string, 2;
# oder
$string =~ s#/.*##;

perlre
perlretut
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: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Stringmanipulation