Thread eine foreach, mehrere regex operationen
(2 answers)
Opened by Gast at 2007-09-14 10:30 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/ |