in reply to Re: Regexp works with some elements and doesn't with others
in thread Regexp works with some elements and doesn't with others
Another thing is that i have another array of which i would want to remove the element in the same position as the one i remove the one from text.
$value = 0; foreach my $text2(@text) { if ($text2 =~ m/^The website has been restructured/) { splice(@text,$value,1); splice(@links,$value,1); } $value++; } }
Is there a way to do this with a loop? Cause i dont think it would be possible to know with grep which element is the one that needs removing. Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Regexp works with some elements and doesn't with others
by diotalevi (Canon) on Feb 07, 2006 at 02:03 UTC | |
by lampros21_7 (Scribe) on Feb 07, 2006 at 02:06 UTC | |
by diotalevi (Canon) on Feb 07, 2006 at 02:10 UTC | |
|
Re^3: Regexp works with some elements and doesn't with others
by bowei_99 (Friar) on Feb 07, 2006 at 02:23 UTC | |
by diotalevi (Canon) on Feb 07, 2006 at 04:15 UTC | |
by GrandFather (Saint) on Feb 07, 2006 at 03:29 UTC | |
|
Re^3: Regexp works with some elements and doesn't with others
by mickeyn (Priest) on Feb 07, 2006 at 10:54 UTC |