|< 1 2 >| | 20 Einträge, 2 Seiten |
Not an ARRAY reference at ...
if ($nr > $#$allmatch) {
1
2
3
4
print "Problemstelle: allmatch: ", Dumper $allmatch;
print "nr = [$nr]\n";
print "\$#\$allmatch = [$#$allmatch]\n";
print "ref \$allmatch = ", ref($allmatch), "\n";
1
2
3
4
5
6
Problemstelle: allmatch: $VAR1 = [
'10000000 ,'
];
nr = [0]
$#$allmatch = [0]
ref $allmatch = ARRAY
if ($nr >= scalar @$allmatch) {
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/perl
use strict;
use warnings;
use Data::Dumper;
my $allmatch = [ '10000000 ,' ];
my $nr = 0;
print "Problemstelle: allmatch: ", Dumper $allmatch;
print "nr = [$nr]\n";
print "\$#\$allmatch = [$#$allmatch]\n";
print "ref \$allmatch = ", ref($allmatch), "\n";
if ($nr > $#$allmatch) {
print "groesser\n";
}
else {
print "kleiner gleich\n";
}
if (0) {
|< 1 2 >| | 20 Einträge, 2 Seiten |