4 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
#!/usr/bin/perl -w
use strict;
use warnings;
main();
sub main {
my %hash = ();
$hash{'check'} = 'klappt';
test(\%hash);
print "2: $hash{'0'}\n";
}
sub test {
my ($ref) = shift;
my %hash = %$ref;
print "dref: $hash{'check'}\n";
$hash{'0'} = 'klappt nicht';
print "1: $hash{'0'}\n";
}
print "2: $hash{'0'}\n";
Use of uninitialized value in concatenation (.) or string at ref.pl line 12.
1
2
3
4
5
6
7
sub test {
my $href = shift;
print "dref: $href->{'check'}\n";
$href->{'0'} = 'klappt nicht';
print "1: $href->{'0'}\n";
}
4 Einträge, 1 Seite |