in reply to (bbfu) (eq instead) Re3: Appending an array
in thread Appending an array
Please advise, I understand now that the push function adds to end of list but why is the grep on the response needed?push @data, $response unless grep { $_ eq $response } @data;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Finding answers in perl (How to fish)
by boo_radley (Parson) on May 31, 2002 at 14:42 UTC | |
|
grep in a conditional
by ChemBoy (Priest) on May 31, 2002 at 16:37 UTC |