in reply to How can one find unique elements from arrays using a LOOP?
@arr = $p{$num};
Using strict would have told you.
Also,
push @p, @x; push @p, @y;
is effectively the same as
push @p, $_ for @x, @y;
Why are you pushing array references in the first example, but arrays in the second one?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can one find unique elements from arrays using a LOOP?
by pajout (Curate) on Mar 04, 2014 at 11:05 UTC | |
by choroba (Cardinal) on Mar 04, 2014 at 12:29 UTC | |
|
Re^2: How can one find unique elements from arrays using a LOOP?
by supriyoch_2008 (Monk) on Mar 04, 2014 at 12:30 UTC |