Thread Problem mit suche [Perl] (12 answers)
Opened by Gast at 2005-06-06 11:08

renee
 2005-06-06 11:16
#5038 #5038
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Wenn der Text in einer Datei steht:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
#! /usr/bin/perl

use strict;
use warnings;

my $file = '/Pfad/zur/Datei.txt';
open(my $fh,"<$file") or die $!;
while(<$fh>){
print if(/5ug1/.../6*End/);
}
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 Problem mit suche [Perl]