lampros21_7 has asked for the wisdom of the Perl Monks concerning the following question:
For example, i have @array1 and @array2. By using: @array1 = grep(!some regexp, @array1);
if the regexp will remove the 3rd element from @array1 how can i remove the 3rd element from @array2 as well?
I don't really know in which positions my elements are that i will want to remove. Thanks for your help in advance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Use grep with two arrays
by QM (Parson) on Feb 14, 2006 at 02:04 UTC | |
by revdiablo (Prior) on Feb 14, 2006 at 03:44 UTC | |
by Roy Johnson (Monsignor) on Feb 14, 2006 at 19:20 UTC | |
by QM (Parson) on Feb 14, 2006 at 17:54 UTC | |
by graff (Chancellor) on Feb 15, 2006 at 01:03 UTC | |
by QM (Parson) on Feb 15, 2006 at 20:53 UTC | |
by mrborisguy (Hermit) on Feb 14, 2006 at 18:44 UTC | |
|
Re: Use grep with two arrays
by davidrw (Prior) on Feb 14, 2006 at 02:21 UTC | |
|
Re: Use grep with two arrays
by Praveen (Friar) on Feb 15, 2006 at 07:23 UTC |