Leser: 1
![]() |
|< 1 2 3 4 >| | ![]() |
40 Einträge, 4 Seiten |
my $errortype = /^(\d+)/;
my ($errortype) = /^(\d+)/;
/^(\d+)/;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
The regular expression:
(?-imsx:/^(\d+)/)
matches as follows:
NODE EXPLANATION
----------------------------------------------------------------------
(?-imsx: group, but do not capture (case-sensitive)
(with ^ and $ matching normally) (with . not
matching \n) (matching whitespace and #
normally):
----------------------------------------------------------------------
/ '/'
----------------------------------------------------------------------
^ the beginning of the string
----------------------------------------------------------------------
( group and capture to \1:
----------------------------------------------------------------------
\d+ digits (0-9) (1 or more times (matching
the most amount possible))
----------------------------------------------------------------------
) end of \1
----------------------------------------------------------------------
/ '/'
----------------------------------------------------------------------
) end of grouping
----------------------------------------------------------------------
my ($zahl) = $zeile =~ /\s+(\d+)\s+">/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
sub process_do { my $self = shift; my %errors = ( 1 => 0, 2 => 0, 3 => 0, ); while (<FILE_IN>) { my ($errortype) =~ /\s+(\d+)\s+">/; next unless $errortype; $errors{$errortype}++; } $self->{data}{errors} = \%errors; }
my ($errortype) =~ /\s+(\d+)\s+">/;
![]() |
|< 1 2 3 4 >| | ![]() |
40 Einträge, 4 Seiten |