1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
my @a_csv_tmp = grep !/$h_csv_ref/ , @a_h_csv_ref;
while( @a_h_csv_ref ) { shift( @a_h_csv_ref ); }
push( @a_h_csv_ref, @a_csv_tmp );
while( @a_csv_tmp ) { shift( @a_csv_tmp ); }
open( ERR, ">>$bindir/mailtext.txt" );
print ERR ">>>> h_csv_ref ############\n";
print ERR $h_csv_ref . "\n";
print ERR "<<< #######################\n\n";
print ERR ">>>> a_csv_tmp ############\n";
foreach my $eintrag_1 ( @a_csv_tmp ) { print ERR $eintrag_1 . "\n"; }
print ERR "<<< #######################\n\n";
print ERR ">>>> a_h_csv_ref ##########\n";
foreach my $eintrag_2 ( @a_h_csv_ref ) { print ERR $eintrag_2 . "\n"; }
print ERR "<<< #######################\n\n";
close( ERR );
1 2 3 4 5 6 7 8 9 10 11 12 13
my $h_csv_ref={}; my @a_h_csv_ref=({},{},'TEST',$h_csv_ref); #my @a_csv_tmp = grep !/$h_csv_ref/ , @a_h_csv_ref; #push( @a_h_csv_ref, @a_csv_tmp ); #while( @a_csv_tmp ) { shift( @a_csv_tmp ); } #while( @a_h_csv_ref ) { shift( @a_h_csv_ref ); } # besser for(reverse 0..$#@a_csv_tmp) { splice(@a_h_csv_ref,$_,1) if $h_csv_ref eq $a_h_csv_ref[$_]; }
@a_csv_tmp=();