Thread Zeilen unterscheiden (4 answers)
Opened by Gast at 2005-10-13 14:59

renee
 2005-10-14 17:11
#58723 #58723
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/perl

use strict;
use warnings;

my $file = 'test.dat';

open(my $fh,"<$file") or die $!;
while(<$fh>){
if(/#vermerk/.../^$/){
print unless(/#vermerk/ || /^$/);
}
}
close $fh;
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 Zeilen unterscheiden