3 Einträge, 1 Seite |
push @{ dateiinhalt[0] }, $whatever;
Quotekabel@kabel:~$ perl -MData::Dumper;
@AoA = ([1..4], [5..8]);
print Dumper (\@AoA);
push @AoA, [9];
print Dumper (\@AoA);
push @{ $AoA[0] }, [10];
print Dumper (\@AoA);
$VAR1 = [
[ 1, 2, 3, 4 ],
[ 5, 6, 7, 8 ]
];
$VAR1 = [
[ 1, 2, 3, 4 ],
[ 5, 6, 7, 8 ],
[ 9 ]
];
$VAR1 = [
[ 1, 2, 3, 4, [10]],
[ 5, 6, 7, 8 ],
[ 9 ]
];
kabel@kabel:~$
push @{ dateiinhalt[0] }, $whatever;
1
2
3
4
5
6
my @dateiinhalt = [[],[],[]];
my $whatever = 17.5;
push @{ dateiinhalt[0] }, $whatever;
#push @{ $dateiinhalt[0] }, $whatever;
1
2
Scalar value @{ dateiinhalt[0] better written as ${ dateiinhalt[0] at C:\Daten\perl\forum\aoa.pl line 4.
Type of arg 1 to push must be array (not array slice) at C:\Daten\perl\forum\aoa.pl line 4, near "$whatever;"
3 Einträge, 1 Seite |