Thread Parsen in Perl?
(6 answers)
Opened by Gast at 2008-02-06 15:44 Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 #!/usr/bin/perl use strict; use warnings; my $file = 'ausgabedatei_des_tools.txt'; { open my $fh, '<', $file or die $!; local $/,"\n\n"; while( my $entry = <$fh> ){ my ($htb) = $entry =~ /(htb\s*\d+\.\d+)/; print $htb,"\n"; } } 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/ |