in reply to Adding only searched values to array ref
@$accounts = grep { !/44443/ } @$accounts; # ^ # | # Here.
Update: But that would work if the elements of @$accounts were strings, but they are not. You need to check the value at the acc key:
@$accounts = grep { $_->{acc} !~ /44443/ } @$accounts;
To add the elements from @$accounts to @$all, use push:
push @$all, @$accounts;
|
|---|