2 Einträge, 1 Seite |
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#get Data
sub get
{
my $self = shift;
my %find = %{$_[0]};
my %splitrow;
my %found;
my $dcmp;
my @output;
my $datarow;
my $fit;
for ($datarow = 0; $datarow < @{$self->{'data'}}; $datarow++)
{
%splitrow = %{$self->unstring (${$self->{'data'}}[$datarow])};
$fit = 1;
foreach $dcmp (keys(%find))
{
if ($find{$dcmp} ne $splitrow{$dcmp})
{
$fit = 0;
}
}
if ($fit == 1)
{
push(@output, $self->unstring (${$self->{'data'}}[$datarow]));
}
}
return \@output;
}
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
29
30
31
32
33
34
35
#get Data
sub get
{
my $self = shift;
my %find = %{$_[0]};
my %splitrow;
my %found;
my $dcmp;
my @output;
my $datarow;
my $fit;
if(defined $_[0]){
for ($datarow = 0; $datarow < @{$self->{'data'}}; $datarow++){
%splitrow = %{$self->unstring (${$self->{'data'}}[$datarow])};
$fit = 1;
foreach $dcmp (keys(%find)){
if ($find{$dcmp} ne $splitrow{$dcmp}) {
$fit = 0;
}
}
if ($fit == 1) {
push(@output, $self->unstring (${$self->{'data'}}[$datarow]));
}
}
}
else{
for ($datarow = 0; $datarow < @{$self->{'data'}}; $datarow++){
push(@output, $self->unstring (${$self->{'data'}}[$datarow]));
}
}
return \@output;
}
2 Einträge, 1 Seite |