Thread Ein string auf ein Musterüberprüfen ! (51 answers)
Opened by mr-sansibar at 2007-06-29 17:48

pq
 2007-07-06 12:32
#78043 #78043
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
[quote=renee,06.07.2007, 10:29]
Code (perl): (dl )
1
2
3
           foreach my $idx (0 .. scalar(@array)-1 ) {
           $array[$idx].="|"
          }
[/quote]
dann doch eher
Code (perl): (dl )
1
2
3
foreach my $idx (0 .. $#array ) {
    $array[$idx] .= "|"
}
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 Ein string auf ein Musterüberprüfen !