in reply to Can I get better approach to get solution
my %x; $x{$_} = undef for @selected_data; my %y; $y{$_} = undef for @all_data; my $total; foreach my $k ( keys %x ) { $total++ if exists $y{$k}; } print "Count -> $total\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can I get better approach to get solution
by Anonymous Monk on Feb 13, 2007 at 04:14 UTC |