Thread eine foreach, mehrere regex operationen (2 answers)
Opened by Gast at 2007-09-14 10:30

renee
 2007-09-14 10:49
#99464 #99464
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Code (perl): (dl )
1
2
3
4
5
6
7
foreach my $i ( reverse 0..$#result1) {
    my $elem = $result1[$i];
    if( $elem =~ /(\d+.\d+.\d+.\d+","\d+","\w+.\w+.\w+)/m ){
        splice @result,$i,1 if $elem =~ /learned/;
        push(@result2, $1); 
    }
}
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread eine foreach, mehrere regex operationen