After receiving a 3D array from a function
my @x = myFunction();
my $a = shift @x;
my @a = @$a; # final product
send an array:
myFunction ( \@myArr, \@myList);
Add to a 3D array:
push @x, \@array;
Push elements into 3D array in a loop:
@array3D=();
for $count (0..3){
for $insideItem (1..10){
push @{ $array3D[ $count ] }, $insideItem;
}
}
# print it out:
for my $x (@days3d){
for my $inner (@$x){
print "($inner)";
}
print "next group\n";
}
---------------
removing lines in hash
%Hash = ( your keys and values here);
@delList = ( list of keys to delete goes here );
delete @Hash{ @delList }; # @ instead of % to delete multiple lines in hash